Also Share you User Model Here
Other Ways ....
if($user->hasRole->name('Admin'))
$user_roles = Auth::user()->roles()->get();
Programing Coderfunda May 19, 2022 Laravel, php No comments
Also Share you User Model Here
Other Ways ....
if($user->hasRole->name('Admin'))
$user_roles = Auth::user()->roles()->get();
0 comments:
Post a Comment
Thanks