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.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2hQnUvO
via IFTTT
Aucun commentaire:
Enregistrer un commentaire