diff --git a/app/Http/Controllers/SearchController.php b/app/Http/Controllers/SearchController.php index 14836da..bbdef61 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(Result $result) + public function index(Search $search) { - $results = $result->sortable()->paginate(10); + $results = $search->sortable()->paginate(10); return view('search.results')->with('results', $results); }