Browse Source

first iteration of search functionality - likely to fail hard

master
jk 3 years ago
parent
commit
125c693ad2
  1. 2
      app/Http/Controllers/SearchController.php

2
app/Http/Controllers/SearchController.php

@ -102,7 +102,7 @@ class SearchController extends Controller
$result['mashes']=$masharr;
$hopadditions = Hopaddition::where('beer_id', $result->beer_id)->distinct('timing')->get();
$result['hopadditions'] = $hopadditions;
$fermentations = Fermentation::where('beer_id', $result->beer_id)-get();
$fermentations = Fermentation::where('beer_id', $result->beer_id)->get();
$fermentarr = array();
$i = 0;
foreach ($fermentations as $fermentation){

Loading…
Cancel
Save