how to get the role of a user in spatie code example Example: get users of specific role laravel role spatie $users = User::role('writer')->get();