Good evening to the whole community, I have the following problem with the laravel pager, I am doing a query by means of a controller to a database on sql server, the query is as follows:
$ data = VistaAHUMA00017 :: whereBetween ('DateDate', [$ request- > start_date, $ request- > end_date]) -> whereBetween ('HoraTime', [$ request- > start_time, $ request- > end_time]) - > paginate (10);
This shows me my records correctly paged in the view, the problem comes when I go to the second page, for some reason it seems as if I had no data, however if you have more data to paginate, I attach an image:
What I do not understand, is that when I put fixed data, without passing variables on the query, the page works perfectly, according to what I have reached to detect is that it stops working by passing the variables to make the query , it is as if when going to the next link the variables no longer serve, this has only happened to me with sql server, in mysql it has always worked perfectly for me ...