TanchoToplineCargo/routes/CRUDgenerated/route.countries.php

14 lines
1.0 KiB
PHP
Raw Normal View History

2024-05-05 04:47:49 +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');
});