Add confirmation route

This commit is contained in:
Miguel N 2021-01-27 02:26:12 +00:00
parent d234415d38
commit 8769f279ac
1 changed files with 3 additions and 0 deletions

View File

@ -266,6 +266,9 @@ Route::group(['prefix' => LaravelLocalization::setLocale(), 'middleware' => ['lo
Route::delete('forms/destroy/{form}', [FormController::class, 'destroy']) Route::delete('forms/destroy/{form}', [FormController::class, 'destroy'])
->name('destroyForm'); ->name('destroyForm');
Route::delete('forms/destroy/{form}/confirm', [FormController::class, 'performConfirmedDeletion'])
->name('destroyFormConfirm');
Route::get('forms', [FormController::class, 'index']) Route::get('forms', [FormController::class, 'index'])
->name('showForms'); ->name('showForms');