You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for sharing this... it's awesome. I need to obtain a list of permissions granted to a role. It appears that the hasPermissionTo method is for the user model only. Is there a means that I've overlooked to get a list of permissions granted to a role? At the moment, I'm getting by with:
$role->permissions is indeed the easiest way to get the permissions of a role.
A function to get the names of all permissions of a role could be handy. The usage of pluck in your example seems fine. I'd accept a PR that adds this to the package.
Thanks for sharing this... it's awesome. I need to obtain a list of permissions granted to a role. It appears that the hasPermissionTo method is for the user model only. Is there a means that I've overlooked to get a list of permissions granted to a role? At the moment, I'm getting by with:
The text was updated successfully, but these errors were encountered: