Browse Source

trying to add dropdowns to edit blades mkIV

master
jk 3 years ago
parent
commit
95f6b51ee9
  1. 3
      app/Http/Controllers/SummarieController.php

3
app/Http/Controllers/SummarieController.php

@ -87,8 +87,9 @@ class SummarieController extends Controller
public function edit($id){
$beer = Summarie::where('beer_id', (int)$id)->first();
$breweries = Brewerie::orderBy('name')->get();
$selected_brewery = $beer->brewery_id;
$data = array('beer'=>$beer, 'selected_brewery'=>$selected_brewery);
$data = array('beer'=>$beer, 'breweries'=>$breweries, 'selected_brewery'=>$selected_brewery);
return view('beers.edit')->with($data);
}

Loading…
Cancel
Save