14 lines
1.1 KiB
PHP
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');
|
|
}); |