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