xxxxxxxxxx
//First go to the file app\Providers\AppServiceProvider.php and add:
use Illuminate\Pagination\Paginator;
public function boot()
{
Paginator::useBootstrap();
}
//Use this after @endforeach in your post.blade.php:
{{ $blogs->links() }}
// OR
// Directly in your blade file
$posts->links('pagination::bootstrap-4')
Is Styles not correct
xxxxxxxxxx
just make sure you have this in your AppServiceProvider.
use Illuminate\Pagination\Paginator;
public function boot()
{
Paginator::useBootstrap();
}
and you're good to go.