18 lines
1.2 KiB
PHP
18 lines
1.2 KiB
PHP
<?php
|
|
use App\Http\Controllers\DistrictsController;
|
|
use Illuminate\Support\Facades\Route;
|
|
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');
|
|
|
|
});
|