|
@ -148,7 +148,7 @@ 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')->pluck('name', 'id'); |
|
|
|
|
|
|
|
|
$breweries = Brewerie::orderBy('name')->get(); |
|
|
$data = array('beer_id'=>$beer_id, 'breweries'=>$breweries); |
|
|
$data = array('beer_id'=>$beer_id, 'breweries'=>$breweries); |
|
|
return view('beers.create')->with($data); |
|
|
return view('beers.create')->with($data); |
|
|
|
|
|
|
|
|