get role list where user has specific permission spiate laravel code example Example: get users of specific role laravel role spatie $users = User::role('writer')->get();