/** * Display the specified resource. * * @param string $uuid * @return \Illuminate\Http\Response */ public function show($uuid) { $doc = Document::byUuid($uuid); if (!$doc) { abort(404); } return view('documents.show', compact('doc')); }