title: Where on with() relationship eloquent
body: <p>I'm trying to paginate links from a page, but it returns the same links, the "where" don't works...</p>
  
  <p>Controller:</p>
  
  <pre><code>public function page_load_more($last_id, $pid) {
  
      $page = Page::where('friendly_url', $pid)
                      -&gt;select('id', 'photo', 'friendly_url', 'name')
                      -&gt;with('ptag', 'get_following')
              -&gt;with(['links' =&gt; function($query) use($last_id) {
                              $query-&gt;where('id', '&lt;', $last_id);
                          }])
                      -&gt;with(['links.comments.user' =&gt; function($query) {
                              $query-&gt;select('id', 'name', 'lastname', 'photo', 'friendly_url');
                          }])-&gt;first();
  
      return view('site.list.page.links', compact('page'));
  }
  </code></pre>
  
  <p>JQuery:</p>
  
  <pre><code>$(window).scroll(function () {
      if ($(document).height() &lt;= $(window).scrollTop() + $(window).height()) {
          var isLoading = false;
          var id = $('.link-shared:last-child').attr("rel");
          var p_id = $(".feed-page-info").attr("rel");
  
          if (isLoading === false) {
              var isLoading = true;
              $.ajax({
                  url: window.location.origin + "/ajax/page/load_more/" + id + '/' + p_id,
                  dataType: "HTML",
                  beforeSend: function () {
  
                  },
                  success: function (response) {
                      $('.page-feed-insert').append(response);
                      var isLoading = false;
                  }
              });
          }
      }
  });
  </code></pre>
  
  <p>Links showed:</p>
  
  <blockquote>
    <p>1 2 3</p>
  </blockquote>
  
  <p>Links when load more:</p>
  
  <blockquote>
    <p>1 2 3</p>
  </blockquote>