Laravel Infinite Scrolling with Livewire

Today we’re going to learn the magical art of infinite scrolling pagination. More specifically, we will be building a Laravel Livewire component that will scroll infinitely like you might see on Twitter or Facebook feeds.

The “infinite scrolling” or “infinite pagination” livewire component will dynamically query data using cursor pagination which helps keep things efficient.

This should be a pretty simple tutorial, so let’s get started!

Part 1 — Setup our Laravel Livewire Project