0

I have used this code and we all know this is the way to call the Laravel's default paginator.

<div class="row">
    <div class="mt-12">
        {!! $projectDashboard->withQueryString()->links() !!}
    </div>
</div>

But when I ran php artisan it was functionally okay but design was broken.

Go to app service provider and add this line to use paginator class:

use Illuminate\Pagination\Paginator;

Set default Bootstrap design from the boot function:

public function boot()
{
   Paginator::useBootstrap();
}
OMi Shah
  • 5,768
  • 3
  • 25
  • 34
  • 1
    Is this a question or more of a self answer! – OMi Shah Sep 02 '23 at 06:45
  • 2
    It's already there in Stack Overflow [Check](https://stackoverflow.com/questions/63840416/how-to-fix-laravel-8-ui-paginate-problem) – Abdulla Nilam Sep 02 '23 at 07:07
  • Take the [tour] so you understand how stackoverflow works, and read [ask] and [answer]. The solution should not be part of your question, it should be separate as an Answer below (although the post is now closed so it's too late to do that). And also we don't need to post the same solution multiple times - as pointed out above, there is already a question and answer about this exact issue on the site. As the guidance mentions, please search properly before posting. Thankyou – ADyson Sep 02 '23 at 08:33

0 Answers0