Raffales-LMS/routes/CRUDgenerated/route.countries.php
2024-04-16 15:43:24 +05:45

15 lines
1.2 KiB
PHP

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