podcastRepository->getAllByUser($this->user)); } public function store(PodcastStoreRequest $request) { self::disableInDemo(); try { return PodcastResource::make($this->podcastService->addPodcast($request->url, $this->user)); } catch (UserAlreadySubscribedToPodcast) { abort(Response::HTTP_CONFLICT, 'You have already subscribed to this podcast.'); } } public function show(Podcast $podcast) { $this->authorize('view', $podcast); return PodcastResource::make($podcast); } }