ncltours's avatar

Pagination for xml data in laravel

I am displaying the information from simplexml api from 3rd party server. How do you do pagination/intinity scroll for xml data?

0 likes
1 reply
jlrdw's avatar

Write a custom paginator, it's not that hard. I did a quick guide a while back that might help guide you https://laracasts.com/discuss/channels/tips/length-aware-paginator

A paginator is just some basic calculations and some CSS to show the links.

And remember laravel is a PHP framework so if built in stuff does not work use a combination of regular PHP and the correct calculations and simply write your own paginator.

Please or to participate in this conversation.