collection->map( fn (Announcement $announcement): AnnouncementResource => new AnnouncementResource($announcement, $this->query) )->all(); } }