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