You could perhaps count your variable, and if < than the number of items per page, hide the pagination
Sep 3, 2016
7
Level 18
5.3 Pagination links rendered when unnecessary?
Hello everyone,
Within the backend of my application I paginate a lot of resources.
Before 5.3's release, when you rendered the links for pagination - they were never rendered if you only had one page, right? All of my applications below 5.3 definitely work this way.
Since upgrading one of my projects to 5.3, if a resource has a single page - i still displays the pagination (without any links because there aren't any).
Take my Comments for example. Here's what my view looks like, pretty basic.
<table class="table table-bordered table-striped">
@include('admin.comments._thead')
<tbody>
@each('admin.comments._item', $comments, 'comment', 'admin.comments._empty')
</tbody>
</table>
{{ $comments->links() }}
Now if there's no comments at all, my view looks like this.

Has anyone else experience this in 5.3? Where the links are rendered when unnecessary?
Level 18
Taylor just confirmed my query on Twitter. It's a bug.
Please or to participate in this conversation.