Browse Source

beers refactor mkXVI

master
jk 3 years ago
parent
commit
1d11eb05c9
  1. 4
      app/Http/Controllers/SummarieController.php

4
app/Http/Controllers/SummarieController.php

@ -88,8 +88,8 @@ class SummarieController extends Controller
'brewery_id' => 'required' 'brewery_id' => 'required'
]); ]);
$beer = Summarie::where('beer_id', $id)->first();
$beer->beer_id=$request->input('beer_id');
$beer = Summarie::where('beer_id', (int)$id)->first();
$beer->beer_id=$beer->beer_id;
$beer->name = $request->input('name'); $beer->name = $request->input('name');
$beer->type = $request->input('type'); $beer->type = $request->input('type');
$beer->abv = $request->input('abv'); $beer->abv = $request->input('abv');

Loading…
Cancel
Save