Second page of paginate won't display the filtered data

Solution 1:

$data->paginate(15)->withQueryString();

use withQueryStrings() method with paginated data.