Support the ongoing development of Laravel.io →
Requests IOC Views
Last updated 2 years ago.
0

Use repositories and bind the controller to the contract - would recommend gives these few videos on Laracasts a watch - https://laracasts.com/search?q=repository

Last updated 2 years ago.
0

A controller should only house interaction for a single section like Admin\UsersController should contain only methods to interact with user domain sections.

So, if you go by this way, controllers will be maintainable.

Also, controllers should not have domain logic. There are repositories for that.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

davidxd33 davidxd33 Joined 29 May 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.