Browse Source

adding dropdown menus to grainbill create blade, mkIV

master
jk 3 years ago
parent
commit
83ae67a1fc
  1. 4
      app/Http/Controllers/GrainbillController.php

4
app/Http/Controllers/GrainbillController.php

@ -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);
}

Loading…
Cancel
Save