TanchoToplineCargo/routes/route.countries.php
2024-05-05 10:32:49 +05:45

14 lines
1.0 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');
});