Raffales-LMS/routes/CRUDgenerated/route.leadcategories.php
2024-04-16 15:43:24 +05:45

15 lines
1.3 KiB
PHP

<?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');
});