New-OMIS/routes/CRUDgenerated/route.countries.php
2024-04-10 15:21:30 +05:45

16 lines
1.1 KiB
PHP

<?php
use App\Http\Controllers\CountriesController;
use Illuminate\Support\Facades\Route;
Route::prefix("country")->as('countries.')->group(function () {
Route::get('/', [CountriesController::class, 'index'])->name('index');
Route::get('/create', [CountriesController::class, 'create'])->name('create');
Route::post('/store', [CountriesController::class, 'store'])->name('store');
Route::post('/sort', [CountriesController::class, 'sort'])->name('sort');
Route::post('/updatealias', [CountriesController::class, 'updatealias'])->name('updatealias');
Route::get('/show/{id}', [CountriesController::class, 'show'])->name('show');
Route::get('/edit/{id}', [CountriesController::class, 'edit'])->name('edit') ;
Route::post('/update/{id}', [CountriesController::class, 'update'])->name('update');
Route::delete('/destroy/{id}', [CountriesController::class, 'destroy'])->name('destroy');
Route::get('/toggle/{id}', [CountriesController::class, 'toggle'])->name('toggle');
});