alp-develop/laravel-livewire-tables
Reactive Livewire data tables for Laravel—search, sort, filter, paginate, export, and bulk actions with zero JavaScript. Supports Laravel 10–13, Livewire 3–4, PHP 8.1+, Tailwind or Bootstrap 4/5, plus dark mode and configurable themes.
| Dependency | Version |
|---|---|
| PHP | 8.x+ |
| Laravel | 10.x+ |
| Livewire | 3.x, 4.x |
composer require alp-develop/laravel-livewire-tables
The package auto-discovers its service provider. No manual registration is needed.
php artisan vendor:publish --tag=livewire-tables-config
This publishes config/livewire-tables.php where you configure the theme, color palette, dark mode, search debounce, and component namespace. This step is required for the package to work correctly.
php artisan vendor:publish --tag=livewire-tables-views
Views will be copied to resources/views/vendor/livewire-tables/.
php artisan vendor:publish --tag=livewire-tables-translations
Translations will be copied to lang/vendor/livewire-tables/.
Included languages: English (en), Spanish (es), Portuguese (pt), French (fr), German (de), Italian (it), Dutch (nl), Polish (pl), Russian (ru), Chinese (zh), Japanese (ja), Korean (ko), Turkish (tr), Indonesian (id).
php artisan make:livewiretable UsersTable User
This generates app/Livewire/Tables/UsersTable.php with a ready-to-edit scaffold.
Supports subdirectories:
php artisan make:livewiretable Admin/UsersTable User
<livewire:tables.users-table />
Set the theme in config/livewire-tables.php:
'theme' => 'tailwind',
| Theme | Value | Alias |
|---|---|---|
| Tailwind CSS | tailwind |
— |
| Bootstrap 5 | bootstrap-5 |
bootstrap5, bootstrap |
| Bootstrap 4 | bootstrap-4 |
bootstrap4 |
Make sure the corresponding CSS framework is loaded in your layout.
How can I help you explore Laravel packages today?