I am using Entrust package in Laravel 5.3 for managing user roles and permissions, and it works perfectly.
The problem is that my users belong to many apps, so I need to check roles and permissions having into account in which app are they trying to perform the actions in each case.
As Entrust does not provide that feature out of the box... Should I add an app_id field to the pivot Entrust role_user table? Then, how would I check the roles in each case? By overriding Entrust methods?
Thanks in advance.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire