Questions tagged [laravel]

Laravel is a free, open-source web MVC framework for PHP.

Laravel is an open source PHP web application framework that is under the MIT license. Laravel includes a packaging system and ORM using an active record pattern and fluent query builder. The routing for the system allows for later changes to the routes to be propagated into existing links. Laravel also has restful controllers that provide another way to separate the logic behind GET and POST requests.

128 questions
3
votes
1 answer

Refactoring a Laravel application layers

My Laravel project starts to grow up and I'm starting to dealing with fat Controllers and Models. Probably I'm for away from the SOLID principles path and my code is not DRY. I decided to refactor my layers logic to follow more SOLID and try to be…
Steve
  • 131
  • 1
2
votes
0 answers

Is it bad practice to use RAW SQL when Laravel Eloquent offers query building alternatives?

I am new to using PHP Frameworks. I decided to try out Laravel. In my project, I needed to write a search function which will search through a few entities based on some keywords, then do a UNION and return the results. So the SQL will look…
-3
votes
1 answer

Does it make sense to build api and web in one app?

My employer recently learned of Laravel, and has asked us to migrate much of our development to it. None of us have issues with this, as we’ve all played around with it. We have two main in-house products: an api, and a web app which calls said…