|
@ -71,7 +71,7 @@ class SummarieController extends Controller |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function edit($id){ |
|
|
public function edit($id){ |
|
|
$beer = Summarie::where('id', (int)$id)->first(); |
|
|
|
|
|
|
|
|
$beer = Summarie::where('beer_id', (int)$id)->first(); |
|
|
return view('beers.edit')->with('beer', $beer); |
|
|
return view('beers.edit')->with('beer', $beer); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -90,7 +90,7 @@ class SummarieController extends Controller |
|
|
'brewery_id' => 'required' |
|
|
'brewery_id' => 'required' |
|
|
]); |
|
|
]); |
|
|
|
|
|
|
|
|
$beer = Summarie::where('id', $id)->first(); |
|
|
|
|
|
|
|
|
$beer = Summarie::where('beer_id', $id)->first(); |
|
|
$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'); |
|
|