orange_adrenalin's avatar

How to create Pagination from json

Hi, I have 2 site on Laravel. I get information about catalog of products by API from first site with pagination data. How to unserialze (or create) pagination template on second site from JSON ? When I create class \Illuminate\Pagination\Paginator from json. They have only one page with itmes, wich lie in data property.

0 likes
1 reply
orange_adrenalin's avatar
Level 7

I find solution I must create instance of class \Illuminate\Pagination\LengthAwarePaginator

Please or to participate in this conversation.