diff --git a/app/Http/Controllers/SearchController.php b/app/Http/Controllers/SearchController.php index 2fb4ae4..8371fd7 100644 --- a/app/Http/Controllers/SearchController.php +++ b/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){