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