jeremykenedy / laravel-roles

A Powerful package for handling roles and permissions in Laravel with GUI. Supports Laravel 5.3, 5.4, 5.5, 5.6, 5.7, 5.8, 6.0, 7.0, 8.0, and 9.0
MIT License
959 stars 196 forks source link

Permissions by users #159

Closed malletfils closed 2 years ago

malletfils commented 3 years ago

Hello,

I see that there is a "permission_user" table, that seems to enable to assign specific permissions to a user. But I can't find how to do it from the admin pages. And I can't find any documentation about it too. I would like to add, for example on the user edit page, a form field to assign specific permissions to the user. Can you help me do that ? Thanks.

jeremykenedy commented 2 years ago

You would attach/detach them:

https://github.com/jeremykenedy/laravel-roles#attaching-detaching-and-syncing-permissions