Get all user’s combined permission. Means permissions inherited from a group and permissions assign to the user directly.
Get a user instance
1 2 |
$User = \Auth::user(); $User = App\Components\User\Models\User::find($id); |
Get all permissions
1 |
$User->getCombinedPermissions() |