|
|
@ -90,7 +90,7 @@ class SearchController extends Controller |
|
|
|
$i = 0; |
|
|
|
foreach ($mashes as $mash){ |
|
|
|
if ($mash->stage == 1) { |
|
|
|
$result->boil = $mash->boil; |
|
|
|
$result['boil'] = $mash->boil; |
|
|
|
} |
|
|
|
if ($i == 0){ |
|
|
|
$masharr[] = array('id'=>$mash->id, 'stage'=>$mash->stage, 'duration'=>$mash->duration); |
|
|
@ -101,6 +101,7 @@ class SearchController extends Controller |
|
|
|
}; |
|
|
|
$results['mashes']=$masharr; |
|
|
|
$hopadditions = Hopaddition::where('beer_id', $result->beer_id)->distinct('timing')->get(); |
|
|
|
$results['hopadditions'] = $hoppaditions; |
|
|
|
} |
|
|
|
break; |
|
|
|
case('brewerie'): |
|
|
|