I am fetching data with all() method in Laravel and passing it to view, where I update the page data through ajax without refreshing the page, so the problem is the page is working fine with small data like 300 – 1000 / but when records are increasing like more then 3000, the reload takes more time. for 3000 data it to 4 mins to load,
I tried to fetch data through limits but when I use where() clause and get() method / the ajax is not working then, (not updating data).
2
Answers
can you try it into controller
and view file ajax is
Use Datatable