Code in this function is executed by ajax call. I have pagination like this:
{
$id=$_GET['data'];
User::where('votes', '>', $id)->paginate(15);
}
It works fine on the first page, however on the second page it does not find the $_GET['data']. How can I organize the pagination in this case? Do I have to overwrite the pagination for this case to enable an extra GET parameter pass to that? Thanks much in advance :)