TanchoToplineCargo/routes/CRUDgenerated/route.forms.php

14 lines
995 B
PHP
Raw Permalink Normal View History

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