Skip to content
Advertisement

Laravel 5.4 + jScroll.js not working

I’m trying to implement an infinite scrolling based on this tutorial.

Couldn’t be simpler, right? well… It’s not working. This is my code here:

In the route file (I didn’t put it in a controller because was a simple test)

JavaScript

In home.blade.php

JavaScript

At the bottom of that same file

JavaScript

There’s absolutely nothing in the console. Like nothing is happening.

I’m missing something, but I don’t know what. Do you see something wrong? Thanks!

Ps. I also changed contentSelector: '.infinite-scroll' to contentSelector: 'div.infinite-scroll',. But nothing.

Advertisement

Answer

Your pagination is outside the infinite-scroll.

Try

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement