From c5f226826dcc2adcf95f4d40e09c3315f4730093 Mon Sep 17 00:00:00 2001 From: jk Date: Thu, 24 Jun 2021 11:31:33 +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 bbdef61..24651a9 100644 --- a/app/Http/Controllers/SearchController.php +++ b/app/Http/Controllers/SearchController.php @@ -18,9 +18,9 @@ use Kyslik\ColumnSortable\Sortable; class SearchController extends Controller { - public function index(Search $search) + public function index(Beer $beer) { - $results = $search->sortable()->paginate(10); + $results = $beer->sortable()->paginate(10); return view('search.results')->with('results', $results); }