From 7b1bbce9578ce425467d8f4c2f0769396849fe98 Mon Sep 17 00:00:00 2001 From: jk Date: Thu, 24 Jun 2021 14:44:38 +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 c46c4f7..5c20f7f 100644 --- a/app/Http/Controllers/SearchController.php +++ b/app/Http/Controllers/SearchController.php @@ -43,7 +43,7 @@ class SearchController extends Controller $i++; }; $grains = Grainbill::where('beer_id', $result->beer_id)->distinct('grain_id'); - $result['grains'][]=[]; + $result['grains']=[]; $i = 0; foreach ($grains as $grain){ $grainname = Grain::where('id', $grain->id)->value('name');