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