Yes. I'm not using Laravel {{ $resource->links() }}. but I figured out the issue. basically I have special case: my app is getting the data from another server via Http requests and I get data paginated and everything but I have to hide the URL of that server from users. so I had to build custom paginator and the issue is I'm caching the data like this:
return Cache::remember('all-data', 5, function () {
return Model::paginate(10);
});
so the results stays the same for 5 mintues and my solution was: