collection->map(fn (ExternalProfile $profile): ExternalProfileJsonResource => new ExternalProfileJsonResource($profile, $this->query))->all(); } }