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

15 lines
1.2 KiB
PHP
Raw Normal View History

2024-04-16 09:58:24 +00:00
<?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');
});