Laravel Pro Tips
🌶️ #Laravel tip: When you want to paginate your data results & only show "Next" and "Previous" buttons, you can opt for "simplePaginate()" instead of "paginate()" method.
In this case, simplePaginate() is more efficient 👍
#PHP #Developers #100Devs
Bilal Haidar - Available 4 Laravel gigs
🔥 #Laravel paginator tip: you can use getCollection and setCollection if you need to do something to the paginator underlying data. Trust me you'll know when you need this.
Alan Rezende 🔥 Full Stack Developer
Jan 17th, 2022
Efficient Pagination Using Deferred Joins
A slight modification to traditional offset/limit pagination that can drastically boost performance.