spatie roles get role id code example Example: get users of specific role laravel role spatie Click to copy$users = User::role('writer')->get();