get users by role name - spatie-laravel-permission

116

User::whereHas("roles", function($q){ $q->where("name", "Member"); })->get()

Comments

Submit
0 Comments