Skip to content
Advertisement

Pagination showing 4 ways instead of only 1 (default one)

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: Page view on 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

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement