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')
php artisan vendor:publish --tag=laravel-pagination
Run
php artisan vendor:publish --tag=laravel-pagination
To show the pagination correctly