Requirements
Before installing Laravel Livewire Tables, ensure your environment meets the following requirements:| Dependency | Version |
|---|---|
| PHP | 8.1, 8.2, 8.3, or 8.4 |
| Laravel | 10.x, 11.x, or 12.x |
| Livewire | 3.x or 4.x |
| Alpine.js | Included with Livewire |
The package is fully tested across 9 different PHP/Laravel/Livewire combinations to ensure compatibility.
Install via Composer
Install the package using Composer:Tailwind CSS Setup
If you’re using the Tailwind CSS theme (the default), you need to add one CSS rule to prevent Alpine.js flicker:resources/css/app.css).
Bootstrap themes do not require this rule — Alpine.js handles visibility automatically through Livewire.
Bootstrap Setup
To use Bootstrap instead of Tailwind CSS, publish the configuration file and change the theme setting:Bootstrap 5
Bootstrap 4
Make sure Bootstrap CSS is loaded in your layout file. The package does not include Bootstrap CSS.
Publishing Assets
Publish Configuration File
Publish the configuration file to customize theme, colors, search debounce, and more:config/livewire-tables.php with the following default settings:
Publish Views (Optional)
Publish the view templates if you need to customize the table markup:resources/views/vendor/livewire-tables/.
Publish Translations (Optional)
Publish translation files to customize or add new languages:lang/vendor/livewire-tables/.
Included languages:
- English (
en) - Spanish (
es) - Portuguese (
pt)
Color Customization
The package uses a primary color palette that can be customized in the config file. Here are some preset color palettes:Dark Mode Setup
Enable dark mode support by updating the configuration:Common selectors:
.dark (Tailwind default), .lt-dark, [data-bs-theme=dark] (Bootstrap 5.3), or body.dark-mode.Compatibility Matrix
The package is tested across multiple PHP, Laravel, and Livewire versions:| PHP | Laravel | Livewire | Testbench |
|---|---|---|---|
| 8.1 | 10.x | 3.x | 8.x |
| 8.2 | 10.x | 3.x | 8.x |
| 8.2 | 11.x | 3.x | 9.x |
| 8.3 | 11.x | 3.x | 9.x |
| 8.2 | 11.x | 4.x | 9.x |
| 8.3 | 11.x | 4.x | 9.x |
| 8.2 | 12.x | 4.x | 10.x |
| 8.3 | 12.x | 4.x | 10.x |
| 8.4 | 12.x | 4.x | 10.x |
The package includes 184 tests with 479 assertions to ensure reliability across all supported versions.
Next Steps
Now that you’ve installed the package, you’re ready to create your first data table:Quick Start
Create your first table in 5 minutes
Configuration
Learn about all configuration options