title: Laravel 5.4 + jScroll.js not working
body: <p>I'm trying to implement an infinite scrolling based on <a href="https://laraget.com/blog/implementing-infinite-scroll-pagination-using-laravel-and-jscroll" rel="nofollow noreferrer">this tutorial</a>.</p>
  
  <p>Couldn't be simpler, right? well... It's not working. This is my code here:</p>
  
  <p>In the route file (I didn't put it in a controller because was a simple test)</p>
  
  <pre><code>Route::get('/', function(){
  
  $articles = \App\Article::paginate(1);
  
  return view('home')-&gt;with('articles', $articles);
  
  });
  </code></pre>
  
  <p>In home.blade.php</p>
  
  <pre><code>&lt;div class="infinite-scroll"&gt;
  @foreach($articles as $article)
      &lt;article class="post"&gt;
          &lt;header&gt;
              &lt;div class="title"&gt;
                  &lt;h2&gt;{{ $article-&gt;title }}&lt;/h2&gt;
              &lt;/div&gt;
          &lt;/header&gt;
      &lt;/article&gt;
  @endforeach
  &lt;/div&gt;
  
  {{ $articles-&gt;links() }}
  </code></pre>
  
  <p>At the bottom of that same file</p>
  
  <pre><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jscroll/2.3.7/jquery.jscroll.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      $('ul.pagination').hide();
      $(function() {
          $('.infinite-scroll').jscroll({
              autoTrigger: true,
              debug: true,
              loadingHtml: '&lt;img class="center-block" src="/images/loading.gif" alt="Loading..." /&gt;',
              padding: 0,
              nextSelector: '.pagination li.active + li a',
              contentSelector: '.infinite-scroll',
              callback: function() {
                  $('ul.pagination').remove();
              }
          });
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>There's absolutely nothing in the console. Like nothing is happening.</p>
  
  <p>I'm missing something, but I don't know what. Do you see something wrong? Thanks!</p>
  
  <p>Ps. I also changed <code>contentSelector: '.infinite-scroll'</code> to <code>contentSelector: 'div.infinite-scroll',</code>. But nothing.</p>