title: Combine two eloquent collections into single collection and paginate
body: <p>I have a news site with an overview of the posts on the homepage. Simple Eloquent collection with pagination, nothing special to be honest (model = Post).
  Now a new model has been added (Video), which should be added to the overview of the posts on the homepage.</p>
  
  <p>So the goal is to get an eloquent collection of the posts and an eloquent collection of the videos (which are not related to each other), then combine them into one collection and paginate over them.</p>
  
  <p>I've looked around and tried a couple of things but none of them seem to work.
  Most of the time they say to use <code>$collection-&gt;merge($otherCollection)</code> but this doesn't work since a video with id 1 won't be shown if there's a post with the same id, which will be the case.</p>
  
  <p>An other option was to define a relationship, but since they are not related at all, that won't work either.</p>
  
  <p>What I have at the moment, to just get the posts:</p>
  
  <pre class="lang-php prettyprint-override"><code>if ($highlighted) {
      $posts = Post::where([
          ['status_id', '=', 4],
          ['published_at', '&lt;=', Carbon::now()],
          ['id', '!=', $highlighted-&gt;id],
       ])-&gt;latest('published_at')-&gt;paginate(14);
  } else {
       $posts = Post::where([
           ['status_id', '=', 4],
           ['published_at', '&lt;=', Carbon::now()]
       ])-&gt;latest('published_at')-&gt;paginate(15);
  }
  </code></pre>
  
  <p>Now I want to retrieve the videos in a similar way</p>
  
  <pre class="lang-php prettyprint-override"><code>$videos = Video::where([
      ['status_id', '=', 4],
      ['published_at', '&lt;=', Carbon::now()]
  ])-&gt;latest('published_at')-&gt;paginate(15);
  </code></pre>
  
  <p>And then combine them into one Eloquent collection and paginate the total instead of the videos and posts seperately</p>
  
  <p>Something like: 
  <code>$collected = $videos + $posts</code> and then <code>-&gt;latest('published_at')-&gt;paginate(15)</code></p>
  
  <p>(I haven't added any examples of what I tried for the sake of the length of this post and since I feel like that is not the way to go, using <code>-&gt;merge()</code>. Also I need an eloquent collection, using the pure DB queries doesn't work, unless that can be converted into an Eloquent collection)</p>
  
  <p>Maybe it's not possible with an eloquent collection and I should be using the query builder?</p>
  
  <p>Any feedback / help is much appreciated. 
  (Feel free to ask for extra code / info)</p>