Auth user check role is not working in serviceProvider Laravel

前端 未结 0 1865
半阙折子戏
半阙折子戏 2020-11-30 00:00

when i use (auth()->user()->hasRole(\'User\')) or (Auth::user()->hasRole(\'User\')) in service provider it gives me this error:

Call to a member func         


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