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

15 lines
996 B
PHP

<?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');
});