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