From c9b6d0ac6864295f1d4e5b67ca834d55c6ed8138 Mon Sep 17 00:00:00 2001 From: jk Date: Tue, 22 Jun 2021 10:44:02 +0100 Subject: [PATCH] beers refactor mkXVII --- app/Http/Controllers/SummarieController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/SummarieController.php b/app/Http/Controllers/SummarieController.php index 0ba2599..64f76f4 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', (int)$id)->first(); - $beer->beer_id=$beer->beer_id; + $beer->beer_id=(int)$id; $beer->name = $request->input('name'); $beer->type = $request->input('type'); $beer->abv = $request->input('abv');