Skip to content

Is there a possibility for paginate the collection? #227

Answered by staudenmeir
ElisameAraujo asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ElisameAraujo,
Did you try Categorias::tree()->paginate(2) (without ->toTree())?

It's possible to make pagination work with Categorias::tree()->paginate(2)->toTree(), but that only gives you the root categories and I assume that's not what you want.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by ElisameAraujo
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ElisameAraujo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants