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