How to add pagination on all tags?
Closed this issue · 1 comments
tfevan commented
How to add pagination on Model::allTags();
I've tried ,
Post::allTags()->paginate(30);
But it's not working...
cviebrock commented
The allTags()
method returns an array, not a collection, so it's not paginateable.
What you probably want is something like:
Post::allTagModels()->paginate(30)