app/Http/Controllers/Admin/*: Remove delete/restore actions
This commit is contained in:
parent
37bff9669a
commit
ba50900e3c
3 changed files with 0 additions and 48 deletions
|
|
@ -18,20 +18,4 @@ class CardController extends Controller
|
|||
{
|
||||
return view('admin.card.index');
|
||||
}
|
||||
|
||||
public function destroy(Card $card)
|
||||
{
|
||||
$card->delete();
|
||||
|
||||
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 ]));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue