You can execute php artisan vendor:publish --tag=laravel-pagination and customize the views in resources/views/vendor/pagination
Mar 24, 2023
4
Level 1
Display Pagination Totals on Single Page of Results
I'm displaying the pagination links as follows in my blade file: {{ $data->links() }}
This is displaying the pagination links and provides an overview on the total number of records:
Showing 1 to 10 of 18 results
I have an issue that when I run a search and the total number of records can fit to a single page, both the pagination links and totals disappear.
I understand why the pagination links disappear, but the totals are still useful and prevents the user from having to manually count the records on the page. Is there a helper I can use to still display the totals?
Showing 1 to 8 of 8 results
Please or to participate in this conversation.