scroll pagination with Laravel API
I am using Laravel API with paginated data in Android...
I want to get auto paginated data. e.g. data on first page load first and when I scroll down, next pages load continously!
Solution 1:
You can use laravel default pagination method instate of get rows.
For example i want show users list:
//instate of :
$users = User::get();
//Use :
$users = User::paginate();
more info at : laravel site https://laravel.com/docs/5.5/pagination