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