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

Added pagination #305

Open
wants to merge 6 commits into
base: v4
Choose a base branch
from
Open

Added pagination #305

wants to merge 6 commits into from

Conversation

sozidatel79
Copy link

No description provided.

@lazychaser
Copy link
Owner

What is the need for this method?

@sozidatel79
Copy link
Author

For paginate the result

@sozidatel79
Copy link
Author

sozidatel79 commented Jul 22, 2018

with this code: $categories = Category::defaultOrder()->withDepth()->get();
i can't paginate the result set.
but with: $categories = Category::defaultOrder()->withDepth()->paginate(100);
i can add {{ $categories->links() }} and paginate instead of loading all data.
http://joxi.ru/5md3dxLtkqlogr

@michabbb
Copy link

more important: why do people invest time - get asked something - and never answer back - same with so many issues here. so stupid.... 🙄

@lazychaser maybe it´s an idea to close all PR and issues and start new from scratch... I don´t see the reason for keeping issues and PR open that are older than a year.....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants