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