Laravel pagination bootstrap 5
// Directly in your blade file
$posts->links('pagination::bootstrap-4')
Shadow
// Directly in your blade file
$posts->links('pagination::bootstrap-4')
use Illuminate\Pagination\Paginator;
public function boot()
{
Paginator::useBootstrap();
}
php artisan vendor:publish --tag=laravel-pagination
Run
php artisan vendor:publish --tag=laravel-pagination
To show the pagination correctly