collection->map(fn (Video $video): VideoResource => new VideoResource($video, $this->query))->all(); } }