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

17 lines
1.2 KiB
PHP

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