15 lines
1.3 KiB
PHP
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');
|
|
}); |