I’m working on a Laravel project
and when I used pagination
with links() method
, it showed in the page 3-4 methods of pagination (all of them are working good), but I want to show only one of them. I haven’t modified anything like CSS or JS
, but I don’t know how to get only one out of 4 of them. This is my pagination section:
Advertisement
Answer
Inside your App Service Provider:
use IlluminatePaginationPaginator; public function boot() { Paginator::useBootstrap(); }
Here is documentation: https://laravel.com/docs/8.x/pagination#using-bootstrap