TanchoToplineCargo/routes/CRUDgenerated/route.galleries.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\GalleriesController;
use Illuminate\Support\Facades\Route;
Route::prefix("galleries")->group(function () {
Route::get('/', [GalleriesController::class, 'index'])->name('galleries.index');
Route::get('/create', [GalleriesController::class, 'create'])->name('galleries.create');
Route::post('/store', [GalleriesController::class, 'store'])->name('galleries.store');
Route::post('/sort', [GalleriesController::class, 'sort'])->name('galleries.sort');
Route::post('/updatealias', [GalleriesController::class, 'updatealias'])->name('galleries.updatealias');
Route::get('/show/{id}', [GalleriesController::class, 'show'])->name('galleries.show');
Route::get('/edit/{id}', [GalleriesController::class, 'edit'])->name('galleries.edit') ;
Route::post('/update/{id}', [GalleriesController::class, 'update'])->name('galleries.update');
Route::delete('/destroy/{id}', [GalleriesController::class, 'destroy'])->name('galleries.destroy');
});