title: How can I paginate a merged collection in Laravel 5?
body: <p>I am creating a stream which contains two types of objects, BluePerson and RedPerson. To create the stream, I fetch all of both objects, then merge them into one collection. After doing so, I need to paginate them, however paginate is for eloquent models and DB queries, and not collections, it seems. I have seen a lot about manually creating a paginator, but the documentation, especially in the API is sparse (I can't even seem to find the arguments the Paginator class accepts.) </p>
  
  <p>How can I paginate the results of merging my collections?</p>
  
  <pre><code>public function index()
  {
      $bluePerson = BluePerson::all();
      $redPerson = RedPerson::all();
  
      $people = $bluePerson-&gt;merge($redPerson)-&gt;sortByDesc('created_at');
  
  
      return view('stream.index')-&gt;with('people', $people);
  }
  </code></pre>