From 113025e402357bcb11bf036d585de1b9d387ed5f Mon Sep 17 00:00:00 2001 From: jk Date: Tue, 22 Jun 2021 10:40:09 +0100 Subject: [PATCH] beers refactor mkXV --- app/Http/Controllers/SummarieController.php | 2 +- resources/views/beers/edit.blade.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/SummarieController.php b/app/Http/Controllers/SummarieController.php index 08d26a5..760668f 100644 --- a/app/Http/Controllers/SummarieController.php +++ b/app/Http/Controllers/SummarieController.php @@ -89,7 +89,7 @@ class SummarieController extends Controller ]); $beer = Summarie::where('beer_id', $id)->first(); - $beer->beer_id=$id; + $beer->beer_id=$request->input('beer_id'); $beer->name = $request->input('name'); $beer->type = $request->input('type'); $beer->abv = $request->input('abv'); diff --git a/resources/views/beers/edit.blade.php b/resources/views/beers/edit.blade.php index 7685617..026c113 100644 --- a/resources/views/beers/edit.blade.php +++ b/resources/views/beers/edit.blade.php @@ -18,6 +18,7 @@ @csrf
+