laravel roles and permissions spatie fetch users with specific roles code example Example: get users of specific role laravel role spatie $users = User::role('writer')->get();