r/laravel • u/davorminchorov • 4h ago
Laravel Best Practices: Clean Code and Architecture
Hey all,
I wrote a course about the bad habits that make Laravel codebases hard to change, work with as well as slower as the complexity grows over time in long-term applications.
The examples are specific to Laravel but they can also be applied to any other PHP application as well with the framework-equivalent approach.
I’ve made some of these mistakes myself as well as I’ve seen them in different projects of different sizes I worked on over the years so the list does come from experience.
The story and the examples are fictional but the habits are based on a true story.
Let me know what you think and if you find anything out of the ordinary in the text, readability or examples.
Thanks!