|
@ -46,7 +46,7 @@ class SearchController extends Controller |
|
|
$grainarr = array(); |
|
|
$grainarr = array(); |
|
|
foreach ($grains as $grain){ |
|
|
foreach ($grains as $grain){ |
|
|
$grainname = Grain::where('id', $grain->id)->value('name'); |
|
|
$grainname = Grain::where('id', $grain->id)->value('name'); |
|
|
$grainarr[] = array('id'=>$grain->id, 'name'=>$grainname); |
|
|
|
|
|
|
|
|
array_push($grainarr, array('id'=>$grain->id, 'name'=>$grainname)); |
|
|
}; |
|
|
}; |
|
|
$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)->distinct('yeast_id'); |
|
|