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

Taylor is right. I'm currently in the process of restructuring a large L4 app because the directories were a mess.

Once you get over about 10 each of controllers or models, or you start using repositories and services extensively, it makes far more sense to structure an app around components. E.g. Orders, Customers, Transactions and keeping all of the requisite code for each component stored (and namespaced) together.

Otherwise you end up with a polluted root namespace and massive directories with no meaningful organisation.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

TuxLyn tuxlyn Joined 14 Apr 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.