/** * Display a listing of the resource. * * @return Response */ public function index() { $podcasts = $this->podcast->all(); return view('podcast::admin.podcasts.index', compact('podcasts')); }
public function rss(PodcastRepository $podcastRepository) { return response()->view('podcast::frontend.rss', ['podcasts' => $podcastRepository->all()], 200, ['content-type' => 'application/rss+xml']); }