TanchoToplineCargo/routes/CRUDgenerated/route.services.php

14 lines
1.0 KiB
PHP
Raw Permalink Normal View History

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