podcasts); } /** @inheritDoc */ public function toArray(Request $request): array { return $this->podcasts->map(function (Podcast $podcast): PodcastResource { return PodcastResource::make($podcast, $this->withSubscriptionData); })->toArray(); } }