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

If it is tied to specific views than view composers are good choice.

I usually create new folder in app folder and add it to composer autoload PSR-4. Than controllers handles requests, but they are more like bosses, they only say other libraries, repositories what to do and is not concerned about how they will do that. So i can easy access the same logics from every where of my app (usually from controllers).

Last updated 2 years ago.
0

I wrote some stuff down that might help you

http://blog.zenry.nl

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

gte451f gte451f Joined 12 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.