From 2d82b0d566d2764c1cb28fe4cf2a0f12211f3439 Mon Sep 17 00:00:00 2001 From: jk Date: Thu, 24 Jun 2021 16:30:39 +0100 Subject: [PATCH] first iteration of search functionality - likely to fail hard --- app/Http/Controllers/SearchController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/SearchController.php b/app/Http/Controllers/SearchController.php index 0d8f873..a9e147e 100644 --- a/app/Http/Controllers/SearchController.php +++ b/app/Http/Controllers/SearchController.php @@ -99,9 +99,9 @@ class SearchController extends Controller }; $i++; }; - $results['mashes']=$masharr; + $result['mashes']=$masharr; $hopadditions = Hopaddition::where('beer_id', $result->beer_id)->distinct('timing')->get(); - $results['hopadditions'] = $hoppaditions; + $result['hopadditions'] = $hoppadditions; } break; case('brewerie'):