|
|
@ -148,8 +148,8 @@ class SummarieController extends Controller |
|
|
|
{ |
|
|
|
$lastID = Summarie::orderBy('beer_id','desc')->take(1)->value('beer_id'); |
|
|
|
$beer_id = number_format($lastID) + 1; |
|
|
|
$brewery_list = Brewerie::orderBy('name')->pluck('name', 'id'); |
|
|
|
$data = array('beer_id'=>$beer_id, 'brewery_list'=>$brewery_list); |
|
|
|
$breweries = Brewerie::orderBy('name')->pluck('name', 'id'); |
|
|
|
$data = array('beer_id'=>$beer_id, 'breweries'=>$breweries); |
|
|
|
return view('beers.create')->with($data); |
|
|
|
|
|
|
|
} |
|
|
|