2024-04-05 05:22:15 +00:00
|
|
|
<?php
|
|
|
|
use App\Http\Controllers\DistrictsController;
|
|
|
|
use Illuminate\Support\Facades\Route;
|
2024-04-10 12:21:18 +00:00
|
|
|
Route::prefix("district")->as('districts.')->group(function () {
|
|
|
|
Route::get('/', [DistrictsController::class, 'index'])->name('index');
|
|
|
|
Route::get('/create', [DistrictsController::class, 'create'])->name('create');
|
|
|
|
Route::post('/store', [DistrictsController::class, 'store'])->name('store');
|
|
|
|
Route::post('/sort', [DistrictsController::class, 'sort'])->name('sort');
|
|
|
|
Route::post('/updatealias', [DistrictsController::class, 'updatealias'])->name('updatealias');
|
|
|
|
Route::get('/show/{id}', [DistrictsController::class, 'show'])->name('show');
|
|
|
|
Route::get('/edit/{id}', [DistrictsController::class, 'edit'])->name('edit') ;
|
|
|
|
Route::post('/update/{id}', [DistrictsController::class, 'update'])->name('update');
|
|
|
|
Route::delete('/destroy/{id}', [DistrictsController::class, 'destroy'])->name('destroy');
|
|
|
|
Route::get('/toggle/{id}', [DistrictsController::class, 'toggle'])->name('toggle');
|
|
|
|
Route::get('/clone/{id}', [DistrictsController::class, 'clone'])->name('clone');
|
2024-04-05 05:22:15 +00:00
|
|
|
|
2024-04-10 12:21:18 +00:00
|
|
|
});
|