TanchoToplineCargo/routes/route.photos.php

14 lines
1015 B
PHP
Raw Normal View History

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