1 |
$User = \Auth::user() |
or
1 |
$User = App\Components\User\Models\User::find($id) |
// Check
1 2 |
$User->hasPermission('blog.create'); // return boolean $User->hasAnyPermission(['blog.create','user.edit','etc']); // return boolean |