spatie permissions where has role 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()