Is there a query string to append. And can you narrow results so you are not paging so many.
Feb 21, 2019
11
Level 1
Laravel 4 pagination links return empty pages
I am trying to paginate thousands of results from database using Laravel 4.2 Unfortunately the page shows page numbers, which after clicking just refresh page leaving only get parameter in my link "?page=2". Is there anything that I am missing?
Controller
$data = SavedValues::where('h_user', '=', $user->id)->orderBy('id', 'desc')->paginate(100);
return View::make('saved-values-view')->with('data', $data);
View:
@foreach($data as $d)
<tr>
<td>{{ $d->datetime }}</td>
<td>{{ $d->value }}</td>
</tr>
@endforeach
{{$data->links()}}
Please or to participate in this conversation.