Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Livewire Datatables

Livewire Datatables Laravel Package

arm092/livewire-datatables

Livewire Datatables builds searchable, sortable, filterable, and editable admin tables with Laravel, Livewire, and Tailwind CSS. Query with models or the query builder, format columns, add bulk actions, and use the built-in Apricode theme.

View on GitHub
Deep Wiki
Context7

Livewire Datatables is a Laravel package for building searchable, sortable, filterable, and editable admin tables with Livewire, Tailwind CSS, and Alpine.js. Feed it a model or query builder, then format columns, sort by computed values, and filter with booleans, dates, selects, or free text—all without leaving your Livewire components. It supports Laravel 10–13 and Livewire 4.3.5+.

  • Flexible filtering: combined filters via a complex query builder
  • Column control: preset/custom callbacks, show/hide, and column groups
  • Bulk actions: mass action support for multi-row operations
  • Self-contained theme: an Apricode-style theme that needs no Tailwind config
  • Publishable assets: customizable config, blade views, and date/time formats
Frequently asked questions about Livewire Datatables
How do I install arm092/livewire-datatables in a Laravel app?
Install it with composer require arm092/livewire-datatables, then confirm Laravel, Livewire, Tailwind CSS and Alpine.js are available in your app. You can optionally publish the package config and Blade views with Laravel's vendor:publish command for the Livewire Datatables service provider. Publishing is useful for custom styling and to ensure Purge CSS includes the package classes.
Which Laravel and Livewire versions does livewire-datatables support?
The README lists Laravel 10, 11, 12 or 13 and Livewire 4.3.5+ as requirements, along with Tailwind CSS and Alpine.js. Because version constraints can change between releases, check the package's composer.json and README before installing in an existing app. If your project is pinned to an older Livewire major version, verify compatibility first.
Do I need Tailwind CSS and Alpine.js to use this Laravel datatable package?
Yes. The package is built for Tailwind CSS and Alpine.js, so you should already have that frontend stack in your Laravel app. The default Apricode theme is scoped to the package controls and requires no Tailwind configuration, but Tailwind itself is still required for styling. If you use Bootstrap or another CSS framework, expect to adapt or isolate the table styles.
How do I make columns searchable, sortable and filterable in Livewire Datatables?
You define the table columns in a Livewire component and supply data from an Eloquent model or query builder. The package supports free-text search, column sorting, and filters for booleans, dates, times, and selects, plus a complex query builder for combined filters. Use the column definitions to control which fields are searchable and sortable, and add filters where users need them.
Can I edit rows and run mass actions with livewire-datatables?
The package is designed for editable admin tables and includes mass or bulk action support for selected rows. You still need to implement authorization, validation, and business rules in your Livewire component or backend before persisting changes. Treat editing and bulk actions as application logic wrapped around the datatable rather than automatic CRUD.
How does livewire-datatables perform with large datasets?
It uses Laravel's query builder, but the package assumes server-side pagination rather than enforcing it. Client-side filtering and sorting can become memory-heavy for very large datasets, especially beyond roughly 10K rows. For production scale, use pagination, indexed database columns, chunked or lazy queries, and avoid loading full result sets into the component.
Can I use column callbacks and computed columns for custom formatting or sorting?
Yes. Column callbacks let you mutate and format values without forking the package, and computed columns can be used for sorting. This is useful for status badges, formatted dates, links, and derived values. Keep expensive computed logic efficient because it can run per row or per query.
How do I publish and customize the Blade views and config for livewire-datatables?
Yes. Publishing the package assets lets you modify the Blade views under resources/livewire/datatables and adjust the config file's default date and time formats. This is helpful when you need custom styling or want Purge CSS to include the package classes. Publish early if you plan deep UI customization so you are not overriding vendor files later.
How do I test complex filters and mass actions in a Livewire datatable?
Use Livewire's testing helpers to mount the datatable component, set filter or search properties, call sorting methods, and assert the rendered rows. Feature tests against a test database are the most reliable way to cover complex filters, computed columns, and mass actions. The package does not replace your application tests, so validate authorization and persistence separately.
How does arm092/livewire-datatables compare with other Laravel datatable packages?
Compare it with other Laravel datatable packages based on your frontend stack: this package is a strong fit if you already use Livewire, Tailwind, and Alpine. If you use Inertia with React or Vue, or a Bootstrap-based admin, a different datatable package may integrate with less friction. Evaluate features like server-side pagination, export, filtering, and maintenance activity before committing.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo
bernskioldmedia/laravel-harvest
bernskiold/laravel-data-scrubber
bernskiold/laravel-currency-converter
bernskiold/laravel-campaign-monitor
bernskioldmedia/laravel-autotranslate
siberfx/telegram-bot
roy-sandip/laravel-view-extended
gregsphotography/site-builder-core
roy-sandip/laravel-view
anodyne/blade-fluentui-icons
webx-ui/module-catalog-collections