laravel-permission: how to give a new role to an user?

后端 未结 0 1616
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-24 03:57

At some point, my user must be promoted

        $user = $request->user();
        

        $user->removeRole(\'user\');
        $user->assignRole(\'         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题