DEV Community

Cover image for Laravel Pagination Style break issue Solve
Arman Rahman
Arman Rahman

Posted on

Laravel Pagination Style break issue Solve

Most of the time when you add pagination on the Laravel blade. It breaks the style. So by following these steps, you can easily solve that page break.

The issue Will be like this-
Issue - Pagination Break

And this will be the output after the fix -

Fixed Pagination

So follow the steps -

1. Goto App > Providers > AppServiceProvider.php
2. add in boot() method -

public function boot()
{
 Paginator::useBootstrap();
}
Enter fullscreen mode Exit fullscreen mode

3. Add Namespace -

use Illuminate\Pagination\Paginator; 
Enter fullscreen mode Exit fullscreen mode

Hope In-sha-Allah this will fix your issue.

Top comments (0)