@ -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){