From ded03e22f1931abe8de561704daa1cb729c5c245 Mon Sep 17 00:00:00 2001 From: Torsten Date: Tue, 14 Nov 2023 10:30:10 +0100 Subject: [PATCH] Working on GalleryItem Naming --- .../Http/Controllers/GalleryController.php | 5 +++++ .../views/tour/gallery/show.blade.php | 20 ++++++++++--------- motorradig/routes/web.php | 1 + 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/motorradig/app/Http/Controllers/GalleryController.php b/motorradig/app/Http/Controllers/GalleryController.php index 4b318aa..58c746c 100644 --- a/motorradig/app/Http/Controllers/GalleryController.php +++ b/motorradig/app/Http/Controllers/GalleryController.php @@ -155,6 +155,11 @@ class GalleryController extends Controller return redirect("/tour/gallery/$tour_id"); } + + public function name_image(Request $request, $tour_id, $image_name) { + $new_image_name = $request->new_image_name; + Log::info("GalleryController::name_image for tour $tour_id , current name=$image_name, new name=$new_image_name"); + } /////////////////////////////////////////////////////////////////////////// private function storeImage($bild, $category, $name) { diff --git a/motorradig/resources/views/tour/gallery/show.blade.php b/motorradig/resources/views/tour/gallery/show.blade.php index 642cf50..62e14e7 100644 --- a/motorradig/resources/views/tour/gallery/show.blade.php +++ b/motorradig/resources/views/tour/gallery/show.blade.php @@ -18,7 +18,17 @@ @if(Auth::user()->role=="ADMIN")

- + + +

+ @csrf + @method('PUT') + + +
+ + X

@endif @@ -35,14 +45,6 @@ --> - - - - - - - -