You mean like infinite scroll? Yep, you could easily use laravel's pagination to do that. You could use the intersection observer to trigger an axios request to get the next page of items, then append them to the end of the list.
Nov 15, 2022
5
Level 8
Progressive loading with Laravel's pagination
Can Laravel's pagination be modified to create progressive loading:
https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Loading
I was thinking to combine Laravel's pagination with JS as seen in the MDN article above.
So for example trigger the page changes (page number) that the pagination creates when reaching the end of viewport
But before I start trying to implement that I wanted to ask if you think that's even a good idea to do that or there are some things that would make it impossible or harder than to implement it from scratch
Please or to participate in this conversation.