Category: Laravel, PHP

By default Laravel Livewire’s pagination Blade template is using Bootstrap CSS classes. If the Laravel application is using Tailwind CSS instead of Bootstrap, the style of the pagination will not appear on Livewire’s component. I modified Tailwind CSS version from default Tailwind CSS pagination just for Livewire use. For example the file of livewire-tailwind.blade.php is located at /resources/views/vendor/pagination/livewire-tailwind.blade.php

If you’re not using Tailwind CSS or using any non-Bootstrap CSS framework for you project, you can simply replace the HTML element with wire:click=”nextPage” / wire:click=”previousPage” / wire:click=”gotoPage({{ $page }})”
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners