Browse Source

trying to add dropdowns to edit blades mkII

master
jk 3 years ago
parent
commit
03c47931db
  1. 2
      app/Http/Controllers/SummarieController.php

2
app/Http/Controllers/SummarieController.php

@ -88,7 +88,7 @@ class SummarieController extends Controller
public function edit($id){
$beer = Summarie::where('beer_id', (int)$id)->first();
$selected_brewery = $beer('brewery_id');
$data = array('beer'=>$beer, 'selected_brewery'=>$selected_brewery)
$data = array('beer'=>$beer, 'selected_brewery'=>$selected_brewery);
return view('beers.edit')->with($data);
}

Loading…
Cancel
Save