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); } }