From 91f925b159ad91aa6e3c183d897df15858f2f8b6 Mon Sep 17 00:00:00 2001 From: jk Date: Thu, 24 Jun 2021 10:55:38 +0100 Subject: [PATCH] first iteration of search functionality - likely to fail hard --- app/Http/Controllers/SearchController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/SearchController.php b/app/Http/Controllers/SearchController.php index 5b2b9ad..2571688 100644 --- a/app/Http/Controllers/SearchController.php +++ b/app/Http/Controllers/SearchController.php @@ -84,7 +84,8 @@ class SearchController extends Controller default: $msg = "You fucked up somehow!"; } - $results = $results->sortable('name')->paginate(10); + $result = $results[0]; + $results = $result->sortable('name')->paginate(10); return('search.results')->with($results); } }