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