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