Laravel-Vue data pagination and filtering through all records
Hi,
I created a laravel-vue app. I paginated results displaying 50 records at a time. That was all easy.
Now, I have over a thousand records, and I need to be able to filter through all records over 1000. I can only filter the results I already returned on single page using Data binding.
Can anyone help me with a simple solution on how to update result while filtering (filtering through the all 1000 records) with included pagination?
I hope I'm understanding the problem clearly -- you should be filtering your query before you paginate the results. By paginate, I mean that by calling the ->paginate(50); method. For example: