TanchoToplineCargo/routes/route.job_categories.php
2024-05-05 10:32:49 +05:45

14 lines
1.1 KiB
PHP

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