--- title: 'You can use the getCollection() and setCollection() methods on the paginator to interact with the underlying data' tweet_id: '1489620186109857800' thread_slug: weekly-thread-2022-05 author_username: alanrezende images: - 'https://pbs.twimg.com/media/FKngV3LWQAQcft4.png' created_at: 2022-02-04T15:21:42+00:00 slug: you-can-use-the-getcollection-and-setcollection-methods-on-the-paginator-to-interact-with-the-underlying-data --- 🔥 #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.