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