/** * Shows the photograph specified by a given slug * * @return Response */ public function showBySlug($slug) { $Photograph = Photograph::where('slug', $slug)->firstOrFail(); return view('photograph', ['photograph_id' => $defaultPhotograph->id]); }