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 @@ --> - - - - - - - -