I have the same problem, and I can also manually navigate the pages. What driver are you using?
Aug 24, 2016
19
Level 4
Laravel scout paginate not working
I create about 300 posts using faker, and use laravel scout to search.
Route::get('search', function () {
$s = Request::get('s');
$posts = App\Post::search($s)->paginate(300);
dd(count($posts));
//return view('search', compact('posts', 's'));
});
It show that there a about 124 results.
If I change 300 to 10, and use {{ $posts->appends(['s' => $s])->links() }} to show pagination. It show 10 results in the first page. But the pagination only have a disabled « and a disabled ». And if I change page to 2 manually, it can also show 10 results, but no pagination. Why this?
Please or to participate in this conversation.