group(function () { Route::get('/', [FormsubmissionsController::class, 'index'])->name('formsubmissions.index'); Route::get('/create', [FormsubmissionsController::class, 'create'])->name('formsubmissions.create'); Route::post('/store', [FormsubmissionsController::class, 'store'])->name('formsubmissions.store'); Route::post('/sort', [FormsubmissionsController::class, 'sort'])->name('formsubmissions.sort'); Route::post('/updatealias', [FormsubmissionsController::class, 'updatealias'])->name('formsubmissions.updatealias'); Route::get('/show/{id}', [FormsubmissionsController::class, 'show'])->name('formsubmissions.show'); Route::get('/edit/{id}', [FormsubmissionsController::class, 'edit'])->name('formsubmissions.edit') ; Route::post('/update/{id}', [FormsubmissionsController::class, 'update'])->name('formsubmissions.update'); Route::delete('/destroy/{id}', [FormsubmissionsController::class, 'destroy'])->name('formsubmissions.destroy'); });