how to get the list of spatie role name in laravel code example
Example 1: get users of specific role laravel role spatie
$users = User::role('writer')->get();
Example 2: get users by role name - spatie/laravel-permission
User::whereHas("roles", function($q){ $q->where("name", "Member"); })->get()