Hi everybody!
I defined an ability in AuthServiceProvider and it always returned false because i use custom guard. I could solve this problem, I put this code in admin middleware: Auth::shouldUse('admin') .
Now if I define an ability in AuthServiceProvider the Gate methods are working, but if I define ability in policy class the gate methods always return false. Can anyone help me?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community