Support the ongoing development of Laravel.io →
Security Packages
Last updated 1 year ago.
0

HasRole has function

ability( $roles, $permissions, $options=array() )

Last updated 1 year ago.
0

Is this ability() function just available on a user? It doesn't seem to be available directly on a role

Last updated 1 year ago.
0

This should do the trick.

$role_permissions = $role->perms()->get();

@foreach($role_permissions as $rp) <p>{{$rp->display_name;}}</p> @endforeach

0

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

0

Sign in to participate in this thread!

Eventy

Your banner here too?

MrAudioGuy mraudioguy Joined 23 Aug 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.