New-OMIS/routes/CRUDgenerated/route.leadcategories.php

15 lines
1.3 KiB
PHP
Raw Normal View History

2024-04-05 05:22:15 +00:00
<?php
use App\Http\Controllers\LeadcategoriesController;
use Illuminate\Support\Facades\Route;
Route::prefix("leadcategories")->group(function () {
Route::get('/', [LeadcategoriesController::class, 'index'])->name('leadcategories.index');
Route::get('/create', [LeadcategoriesController::class, 'create'])->name('leadcategories.create');
Route::post('/store', [LeadcategoriesController::class, 'store'])->name('leadcategories.store');
Route::post('/sort', [LeadcategoriesController::class, 'sort'])->name('leadcategories.sort');
Route::post('/updatealias', [LeadcategoriesController::class, 'updatealias'])->name('leadcategories.updatealias');
Route::get('/show/{id}', [LeadcategoriesController::class, 'show'])->name('leadcategories.show');
Route::get('/edit/{id}', [LeadcategoriesController::class, 'edit'])->name('leadcategories.edit') ;
Route::post('/update/{id}', [LeadcategoriesController::class, 'update'])->name('leadcategories.update');
Route::delete('/destroy/{id}', [LeadcategoriesController::class, 'destroy'])->name('leadcategories.destroy');
Route::get('/toggle/{id}', [LeadcategoriesController::class, 'toggle'])->name('leadcategories.toggle');
});