Support the ongoing development of →
posted 8 years ago
Last updated 1 year ago.

In laravel you can make classes anywhere. I actually don't have a problem with controllers collecting things and putting things together for display, but if you find yourself do that so much that you need to reuse something of that logic then yeah you need another layer. I would look into something like the Decorator Pattern.


A decorator pattern may be what you're looking for. This was a nice package i'm not sure if it supports L5


Sign in to participate in this thread!


Your banner here too?

jegra jegra Joined 19 Jan 2015


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

Your logo here?

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

© 2024 - All rights reserved.