|
@ -74,7 +74,7 @@ class GrainbillController extends Controller |
|
|
} |
|
|
} |
|
|
public function create() |
|
|
public function create() |
|
|
{ |
|
|
{ |
|
|
$beers = Summarie::orderBy('name')->get('id','name'); |
|
|
|
|
|
|
|
|
$beers = Summarie::orderBy('name')->get('beer_id','name'); |
|
|
$grains = Grain::orderBy('name')->get('id','name'); |
|
|
$grains = Grain::orderBy('name')->get('id','name'); |
|
|
$data = array('beers'=>$beers, 'grains'=>$grains); |
|
|
$data = array('beers'=>$beers, 'grains'=>$grains); |
|
|
return view('grainbills.create')->with($data); |
|
|
return view('grainbills.create')->with($data); |
|
|