From 125c693ad221fa9dbb9dae84bb8b69fba782e5d3 Mon Sep 17 00:00:00 2001 From: jk Date: Thu, 24 Jun 2021 16:44:54 +0100 Subject: [PATCH] first iteration of search functionality - likely to fail hard --- app/Http/Controllers/SearchController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/SearchController.php b/app/Http/Controllers/SearchController.php index d381d5e..096628d 100644 --- a/app/Http/Controllers/SearchController.php +++ b/app/Http/Controllers/SearchController.php @@ -102,7 +102,7 @@ class SearchController extends Controller $result['mashes']=$masharr; $hopadditions = Hopaddition::where('beer_id', $result->beer_id)->distinct('timing')->get(); $result['hopadditions'] = $hopadditions; - $fermentations = Fermentation::where('beer_id', $result->beer_id)-get(); + $fermentations = Fermentation::where('beer_id', $result->beer_id)->get(); $fermentarr = array(); $i = 0; foreach ($fermentations as $fermentation){