Support the ongoing development of Laravel.io →
posted 9 years ago
Architecture
Last updated 2 years ago.
0

ottz0 said:

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.

Thanks

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.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

ottz0 ottz0 Joined 15 Nov 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.