Pagination links not showing in view when I use paginate() but it only shows "Previous" and "Next" when I use simplePaginate(). Please I need help. It's still tailwind CSS that I am using.
When I use paginate(), the link() does not display in the view.
//this will not show the links view in the blade file
$blogs = Blog::with('category')->paginate(15);
//but this shows only previous and next
$blogs = Blog::with('category')->simplePaginate(15);
This is for the view
{{ $blogs->links() }}
//I also tried this
{!! $blogs->links() !!}
Therefore, if you only need to display simple "Next" and "Previous" links in your application's UI, you may use the simplePaginate method to perform a single, efficient query.
When I use paginate(), the link() does not display in the view.
//this will not show the links view in the blade file
$blogs = Blog::with('category')->paginate(15);
//but this shows only previous and next
$blogs = Blog::with('category')->simplePaginate(15);
This is for the view
{{ $blogs->links() }}
//I also tried this
{!! $blogs->links() !!}
When I use paginate(), the link() does not display in the view.
//this will not show the links view in the blade file
$blogs = Blog::with('category')->paginate(15);
//but this shows only previous and next
$blogs = Blog::with('category')->simplePaginate(15);
This is for the view
{{ $blogs->links() }}
//I also tried this
{!! $blogs->links() !!}