title: Laravel, how to convert a collection object into a builder object
body: <p>I need to use paginate and simplepaginate on a collection, so i'm trying to convert the collection into a builder object.
  To do so I am thinking of creating a function that gets the id of every item in the collection and then builds a query with it, but that seemed to me like a lot of resources waisted,
  Is there a simpler way ? </p>