I'm working on a new Laravel project and need some insight on where to go with implementing an ACL into my app.
I need to go a little deeper than just assigning a user a role ( Admin, Manager, etc.. ). It needs to be team based. Every user can be tied to multiple teams and have a different role for each one. When the user, for example, goes to myapp.com/viewteam/6 I need to check the URL parameter and then determine what "view" file to display depending on the role the current user has for that team, if they are tied to it at all.
Should I go with a prebuilt ACL package ( recommend some please! ) or build something myself? Briefly thought about using a query in a Middleware but would that not slow down load times? It would be very easy to implement.. just check the current user and URL parameter passed to see if they have a role for that team.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire