HasRole has function
ability( $roles, $permissions, $options=array() )
Is this ability() function just available on a user? It doesn't seem to be available directly on a role
This should do the trick.
$role_permissions = $role->perms()->get();
@foreach($role_permissions as $rp) <p>{{$rp->display_name;}}</p> @endforeach
MelonSmasher said:
This should do the trick.
$role_permissions = $role->perms()->get();
@foreach($role_permissions as $rp) <p>{{$rp->display_name;}}</p> @endforeach
I like this,hope this works
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community