To use your own pagination theme, you have just to specify it in the links() method.
{{ $products->links('views.to.my.pagination.theme') }}
I am bit confuse how to use a view component for pagination? I mean my pagination component is called in view file like this
<!--foreach loop to show items card-->
<div id="pagination" class="p-4">
<!--below is pagination code-->
<x-pagination></x-pagination>
</div>
And to show pagination we use below code generally in our view.
$products->links();
I am using Tailwind to style my pagination, and I know by default Laravel use Tailwind to generate default pagination. But I want to use mine because I have customized it according to my theme. Any other pro tip?
To use your own pagination theme, you have just to specify it in the links() method.
{{ $products->links('views.to.my.pagination.theme') }}
Please or to participate in this conversation.