Browse Source

trying to add dropdowns to edit blades - fermentations mkII

master
jk 3 years ago
parent
commit
ff974943d4
  1. 2
      app/Http/Controllers/FermentationController.php

2
app/Http/Controllers/FermentationController.php

@ -59,7 +59,7 @@ class FermentationController extends Controller
$selected_beer = $fermentation->beer_id; $selected_beer = $fermentation->beer_id;
$yeasts = Yeast::orderBy('name')->get(); $yeasts = Yeast::orderBy('name')->get();
$selected_yeast = $fermentation->yeast_id; $selected_yeast = $fermentation->yeast_id;
$selected_alt = $fermenation->alternative;
$selected_alt = $fermentation->alternative;
$data = array('fermentation'=>$fermentation, 'beers'=>$beers, 'yeasts'=>$yeasts, 'selected_beer'=>$selected_beer, 'selected_yeast'=>$selected_yeast, 'selected_alt'=>$selected_alt); $data = array('fermentation'=>$fermentation, 'beers'=>$beers, 'yeasts'=>$yeasts, 'selected_beer'=>$selected_beer, 'selected_yeast'=>$selected_yeast, 'selected_alt'=>$selected_alt);
return view('fermentations.edit')->with($data); return view('fermentations.edit')->with($data);
} }

Loading…
Cancel
Save