예제 #1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  Podcast $podcast
  * @return Response
  */
 public function destroy(Podcast $podcast)
 {
     $this->podcast->destroy($podcast);
     flash()->success(trans('core::core.messages.resource deleted', ['name' => trans('podcast::podcasts.title.podcasts')]));
     return redirect()->route('admin.podcast.podcast.index');
 }
예제 #2
0
 public function compose(View $view)
 {
     $view->with('podcasts', $this->podcastRepository->allPublished());
 }
예제 #3
0
 public function rss(PodcastRepository $podcastRepository)
 {
     return response()->view('podcast::frontend.rss', ['podcasts' => $podcastRepository->all()], 200, ['content-type' => 'application/rss+xml']);
 }