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?