Answer the question
In order to leave comments, you need to log in
How to get users with specific role using Zizaco/Entrust?
According to the documentation, I write in the controller:
I get an error:$admins = User::withRole('admin')->get();
Call to undefined method Illuminate\Database\Query\Builder::withRole()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question