]> _ Git - psq.git/commitdiff
Update PodcastController.php
authorLouis Jeckel <louis.jeckel@outlook.cm>
Tue, 1 Sep 2020 12:30:40 +0000 (14:30 +0200)
committerLouis Jeckel <louis.jeckel@outlook.cm>
Tue, 1 Sep 2020 12:30:40 +0000 (14:30 +0200)
app/Http/Controllers/PodcastController.php

index e90d776bf6fe3b4879acd4b2936d85eaee70f68a..acd74a345ee017e32c47708ee91003c92d436f09 100644 (file)
@@ -11,7 +11,7 @@ class PodcastController extends Controller
 
     public function index()
     {
-        \View::share('podcast', Podcast::published()->visible()->orderByDesc('id')->first());
+        \View::share('podcast', Podcast::published()->visible()->orderByDesc('id')->firstOrFail());
         return view('podcasts.show');
     }
 }