From 8769f279accca8475ad0d99b0f0d6b8cce65479a Mon Sep 17 00:00:00 2001 From: Miguel N Date: Wed, 27 Jan 2021 02:26:12 +0000 Subject: [PATCH] Add confirmation route --- routes/web.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/routes/web.php b/routes/web.php index b13425b..4d2452a 100755 --- a/routes/web.php +++ b/routes/web.php @@ -266,6 +266,9 @@ Route::group(['prefix' => LaravelLocalization::setLocale(), 'middleware' => ['lo Route::delete('forms/destroy/{form}', [FormController::class, 'destroy']) ->name('destroyForm'); + Route::delete('forms/destroy/{form}/confirm', [FormController::class, 'performConfirmedDeletion']) + ->name('destroyFormConfirm'); + Route::get('forms', [FormController::class, 'index']) ->name('showForms');