Support the ongoing development of Laravel.io →
Authentication Validation Packages
Last updated 1 month ago.
0

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.

0

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.

0

Sign in to participate in this thread!

Cloudways

Your banner here too?

svolenszki svolenszki svolenszki Joined 21 Oct 2015

Moderators

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.

© 2022 Laravel.io - All rights reserved.