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

In L5 the models files are situated inside "app" folder. Controler inside "app/Http/Controllers" and views inside "resources/views".

0

And models are based in the "app/" directory :)

0

You can put your model anywhere you like, it's up to you.

0

Basically, if you are going to learn Laravel 5. All Laravel 4 => USELESS to you. I feel like i'm learning from scratch with Laravel 5. I recommend Laracasts.

0

Come on ezos86.. The changes between Laravel 4 to Laravel 5 isn't 10% compared to what was the L3 -> L4 transition.

No one forces you to upgrade if you don't want to.

0

And a lot of the community were already using PSR-4 namespacing, not using model & controller folders for a long time in L4. The directory structure changes was reflecting what the community does, nothing more.

0

I highly recommend Laracasts, very good examples for L5.

ezos, L3 and L4 were like Codeigniter, built for small to big applications, a lot of helpers and useful techniques but they let the user implement bad workarounds for everything, driving them to a bunch of messy coding and no OOP. With L5 they are "obligated" to implement S.O.L.I.D principles which are the foundation for maintainable, easy to read applications.

(Sorry for my bad english)

0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.