Raffales-LMS/routes/CRUDgenerated/route.districts.php

15 lines
1.2 KiB
PHP
Raw Permalink Normal View History

2024-04-16 09:58:24 +00:00
<?php
use App\Http\Controllers\DistrictsController;
use Illuminate\Support\Facades\Route;
Route::prefix("districts")->group(function () {
Route::get('/', [DistrictsController::class, 'index'])->name('districts.index');
Route::get('/create', [DistrictsController::class, 'create'])->name('districts.create');
Route::post('/store', [DistrictsController::class, 'store'])->name('districts.store');
Route::post('/sort', [DistrictsController::class, 'sort'])->name('districts.sort');
Route::post('/updatealias', [DistrictsController::class, 'updatealias'])->name('districts.updatealias');
Route::get('/show/{id}', [DistrictsController::class, 'show'])->name('districts.show');
Route::get('/edit/{id}', [DistrictsController::class, 'edit'])->name('districts.edit') ;
Route::post('/update/{id}', [DistrictsController::class, 'update'])->name('districts.update');
Route::delete('/destroy/{id}', [DistrictsController::class, 'destroy'])->name('districts.destroy');
Route::get('/toggle/{id}', [DistrictsController::class, 'toggle'])->name('districts.toggle');
});