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

14 lines
1.1 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');
});