/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $document = \App\Models\Document::find($id); $document_type = $document->document_type; $document_title = \App\Models\Document::documentTitle($document_type); return View::make('document.edit', compact('document', 'document_title')); }