Zizaco / entrust

Role-based Permissions for Laravel 5
MIT License
6.05k stars 1.29k forks source link

Update User Role #920

Open pavan-cs opened 6 years ago

pavan-cs commented 6 years ago

There is a feature to attache role with the user $user->attachRole($admin); but there should also be a feature for update User Role, like $user->updateRole($agent); other wise need to call directly DB to update

kostyan-org commented 5 years ago

I support this question. After reading the description, I did not understand how to add new permissions to the existing role.

davidvexel commented 5 years ago

I strongly recommend moving away from this plugin, it has not been updated in a long time. I'm using https://github.com/spatie/laravel-permission now and works like charm.