Raffales-LMS/routes/CRUDgenerated/route.branches.php

15 lines
1.1 KiB
PHP
Raw Permalink Normal View History

2024-04-16 09:58:24 +00:00
<?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::delete('/destroy/{id}', [BranchesController::class, 'destroy'])->name('branches.destroy');
Route::get('/toggle/{id}', [BranchesController::class, 'toggle'])->name('branches.toggle');
});