TanchoToplineCargo/routes/route.customfields.php
2024-06-04 16:10:03 +05:45

17 lines
1.0 KiB
PHP

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