-
Notifications
You must be signed in to change notification settings - Fork 216
Get Permissions
Kodeine edited this page Feb 23, 2015
·
3 revisions
Get permissions assigned to a role.
$roleAdmin = Role::first();
$roleAdmin->getPermissions();
Get permissions assigned to a user. An array of key value pairs are returned having user permissions along with its role permissions. Of course user permissions override role ones.
$user = User::first();
$user->getPermissions();