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

14 lines
1.1 KiB
PHP

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