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