TanchoToplineCargo/routes/CRUDgenerated/route.applicants.php

14 lines
1.1 KiB
PHP
Raw Permalink Normal View History

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