get users by role name - spatie/laravel-permission code example
Example: get users by role name - spatie/laravel-permission
User::whereHas("roles", function($q){ $q->where("name", "Member"); })->get()
User::whereHas("roles", function($q){ $q->where("name", "Member"); })->get()