We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Pagiantion on custom Tag.

Matthew Butler September 21, 2020 by Matthew Butler

I have acustom tag that fetches data from a DB, but, when I come to paginate the data, I can't seem to do it. In my tag, I can do this;

return Model::latest()->paginate(15);
and It displays an unstyled pagination but doesn't loop though any of my actual comments.

If I append toArray() to the end of the I can loop over all my data, but I can't get a pagination links to display. I can't seem to find anything out in the wild about this. Can anyone help?

>>>>>>> Unanswered <<<<<<<
3 Replies