Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pagination to FindAll trait #53

Merged
merged 1 commit into from
Dec 10, 2024
Merged

Add pagination to FindAll trait #53

merged 1 commit into from
Dec 10, 2024

Conversation

casperbakker
Copy link
Member

To get the first 100 pages of parcels, use:

$parcels = $sendCloud->parcels()->all([], 100);

To get all pages of contracts, use:

$parcels = $sendCloud->contracts()->all([], null);

@casperbakker casperbakker merged commit d2de7b5 into main Dec 10, 2024
@casperbakker casperbakker deleted the pagination branch December 10, 2024 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant