New-OMIS/routes/CRUDgenerated/route.vendors.php
2024-04-05 11:07:15 +05:45

16 lines
1.2 KiB
PHP

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