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
+