I have a question about laravel pagination and infinite scroll :
First of all, I have this :
-
There is also a way to implement this with another infinite scroll plugin https://github.com/pklauzinski/jscroll.
Assuming you have a simple Blade view:
@foreach($media as $m)
- {{$m->title}}
@endforeach
{{$media->links()}}
We can achieve infinite scroll with the following JS-code
=HTML::script('jquery.jscroll/jquery.jscroll.min.js');?>
The nextSelector property will select the next page link in your default Laravel paging, contentSelector selects only required content, and the callback function hides paging content (I had to manually hide it because their attribute pagingSelector seems to be invalid for me). You can find mode details on plugin's home page.