Browse Source

first iteration of search functionality - likely to fail hard

master
jk 3 years ago
parent
commit
1c9ca5c3c2
  1. 4
      app/Http/Controllers/SearchController.php

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

Loading…
Cancel
Save