113 - Viewing the Update Form

Just the view, saving changes not yet implemented.
This commit is contained in:
Adam Wathan
2017-06-28 13:44:06 -04:00
parent 5157129cca
commit a8673b2036
7 changed files with 305 additions and 8 deletions

View File

@@ -55,4 +55,15 @@ class ConcertsController extends Controller
return redirect()->route('concerts.show', $concert);
}
public function edit($id)
{
$concert = Auth::user()->concerts()->findOrFail($id);
abort_if($concert->isPublished(), 403);
return view('backstage.concerts.edit', [
'concert' => $concert,
]);
}
}