|
@ -102,7 +102,7 @@ class SearchController extends Controller |
|
|
$result['mashes']=$masharr; |
|
|
$result['mashes']=$masharr; |
|
|
$hopadditions = Hopaddition::where('beer_id', $result->beer_id)->distinct('timing')->get(); |
|
|
$hopadditions = Hopaddition::where('beer_id', $result->beer_id)->distinct('timing')->get(); |
|
|
$result['hopadditions'] = $hopadditions; |
|
|
$result['hopadditions'] = $hopadditions; |
|
|
$fermentations = Fermentation::where('beer_id', $result->beer_id)-get(); |
|
|
|
|
|
|
|
|
$fermentations = Fermentation::where('beer_id', $result->beer_id)->get(); |
|
|
$fermentarr = array(); |
|
|
$fermentarr = array(); |
|
|
$i = 0; |
|
|
$i = 0; |
|
|
foreach ($fermentations as $fermentation){ |
|
|
foreach ($fermentations as $fermentation){ |
|
|