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++; $i++;
}; };
$result['grains'] = $grainarr; $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(); $yeastarr=array();
$i = 0; $i = 0;
foreach ($yeasts as $yeast){ foreach ($yeasts as $yeast){

Loading…
Cancel
Save