StocksNew/routes/CRUDgenerated/route.vendors.php
Sampanna Rimal 53c0140f58 first commit
2024-08-27 17:48:06 +05:45

18 lines
1.0 KiB
PHP

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