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