I'm learning L5 and php OOP and think i'm getting on pretty well.
I am using routes, controllers, eloquent and blade. My code though is still pretty much one dimensional.
What would be the next kind of think to start getting into? Should I now start to learn more about repositories, interfaces, services?
I'm looking to now structure my code more efficiently.
If you are comfortable with Eloquent just use Eloquent it's a more fluent and understandable way to write your code, don't fall into the trap of good and bad code, I've been there myself. If you are comfortable with your code and makes sense to you stay with what you are doing. On the other hand repositories, interfaces and services will help you get a better understanding of how laravel framework works itself and I think is more structured approach if you are developing something which is medium-large scale based. Still there is no right and wrong way to write your code only more efficient ones for you or for the machine that is running the project.
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us
The Laravel portal for problem solving, knowledge sharing and community building.