afoysal's avatar

Pagination in HTTP Client

I am using below code as HTTP Client.

$response = Http::get('http://example.com');

How can I add Pagination here ?

0 likes
1 reply
SilenceBringer's avatar

@afoysal it's based on service you use. Service should have pagination and returns meta details (like LengthAwarePaginator). Then you'll need to parse meta data to request the next page

1 like

Please or to participate in this conversation.