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