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.
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us