app/Http/Controllers/Admin/CharacterController.php: Adding restore()
This commit is contained in:
parent
b0166bcb3b
commit
110e50142c
1 changed files with 8 additions and 0 deletions
|
|
@ -26,4 +26,12 @@ class CharacterController extends Controller
|
|||
return redirect()->route('admin.character.index')
|
||||
->with('info', __("Character #:id was deleted.", [ 'id' => $character->id ]));
|
||||
}
|
||||
|
||||
public function restore(Character $character)
|
||||
{
|
||||
$character->restore();
|
||||
|
||||
return redirect()->route('admin.character.index')
|
||||
->with('info', __("Character #:id was restored.", [ 'id' => $character->id ]));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue