|
@ -87,8 +87,9 @@ class SummarieController extends Controller |
|
|
|
|
|
|
|
|
public function edit($id){ |
|
|
public function edit($id){ |
|
|
$beer = Summarie::where('beer_id', (int)$id)->first(); |
|
|
$beer = Summarie::where('beer_id', (int)$id)->first(); |
|
|
|
|
|
$breweries = Brewerie::orderBy('name')->get(); |
|
|
$selected_brewery = $beer->brewery_id; |
|
|
$selected_brewery = $beer->brewery_id; |
|
|
$data = array('beer'=>$beer, 'selected_brewery'=>$selected_brewery); |
|
|
|
|
|
|
|
|
$data = array('beer'=>$beer, 'breweries'=>$breweries, 'selected_brewery'=>$selected_brewery); |
|
|
return view('beers.edit')->with($data); |
|
|
return view('beers.edit')->with($data); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|