Hi,
I would like to show a Selectbox with a list of all Users, which have a Role of ID 1.
How can I do that the best and shortest way?
Thanks for your help
Kay
Ah, I have found a way like this:
$admins = Role::find(1)->users()->get()->lists('username', 'id');
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community