have you seen laravels policies and abilities?
i think those concepts were added to the framework on version 5.2 but the actual implementation is just about having some classes that control the authorization rules. the framework actually maps stuff, something like listeners and events are mapped, so that you get a lot of functionality like using these policies and abilities directly on the controller using global functions, but thats all part of the laravel way of making life easy. you could get some ideas from how they implement that. its like using a query object for one specific long query instead of wanting to use a repository for everything.
Hi lgalaz, thank you for your attention!
Yes I have seen, and maybe in the next version we will revrite the code, but now we cant change the framework version.
This is why I looking for another solution.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community