Character: add ability to edit a character.
This commit is contained in:
parent
d8895901bf
commit
b6f1f8b887
8 changed files with 217 additions and 70 deletions
|
|
@ -28,6 +28,15 @@ class CharacterController extends Controller
|
|||
return view('character.create');
|
||||
}
|
||||
|
||||
public function edit(Character $character)
|
||||
{
|
||||
$this->authorize('update', $character);
|
||||
|
||||
return view('character.edit', [
|
||||
'character' => $character
|
||||
]);
|
||||
}
|
||||
|
||||
public function destroy(Character $character)
|
||||
{
|
||||
$this->authorize('delete', $character);
|
||||
|
|
|
|||
Reference in a new issue