Crazylife's avatar

How to refresh the larabel pagination when filtering data if just refreshing the div content

I am using custom filter to filter my data in a div content

<div id="refresh">
<div/>

// pagination 
{{ $lists->links() }}

If display all item it will be fined, but if filter the data the pagination number will not be refreshed will remain the page where all data displayed. e.g, there are 3 pages at first after filter it still remain 3 pages if the actual page is 1. I am using ajax to filter the data by refreshing the content data. Anyway to solve this issue?

0 likes
0 replies

Please or to participate in this conversation.