collection->map(fn (Role $role): RoleResource => new RoleResource($role, $this->query))->all(); } }