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