Browse Source

trying to add dropdowns to edit blades - hopadditions mkII

master
jk 3 years ago
parent
commit
74ffaaf036
  1. 2
      app/Http/Controllers/HopAdditionController.php

2
app/Http/Controllers/HopAdditionController.php

@ -54,7 +54,7 @@ class HopAdditionController extends Controller
$hops = Hop::orderBy('name')->get();
$selected_hop = $hopaddition->hop_id;
$data = array('hopaddition'=>$hopaddition, 'beers'=>$beers, 'hops'=>$hops, 'selected_beer'=>$selected_beer, 'selected_hop'=>$selected_hop);
return view('hopadditions.edit')->with('hopaddition', $hopaddition);
return view('hopadditions.edit')->with($data);
}
public function update(Request $request, $id){

Loading…
Cancel
Save