Browse Source

first iteration of search functionality - likely to fail hard

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

2
app/Http/Controllers/SearchController.php

@ -59,7 +59,7 @@ class SearchController extends Controller
$i++;
};
$result['grains'] = $grainarr;
$yeasts = Fermentation::where('beer_id', $result->beer_id)->distinct('yeast_id');
$yeasts = Fermentation::where('beer_id', $result->beer_id)->value('yeast_id');
$yeastarr=array();
$i = 0;
foreach ($yeasts as $yeast){

Loading…
Cancel
Save