dndarksan/laravel-livewire-datatable-only-arrays
Livewire v2 + Bootstrap 4 datatable component for arrays only. Install via Composer and generate tables with php artisan make:dt-table. Define headers, columns, and records arrays to enable sortable/searchable columns and per-cell classes.
bootstrap@4.6.3) or manual overrides.toArray()), adding overhead for complex queries.rapappel/laravel-livewire-tables) already in use?
composer require livewire/livewire:^2.0)."bootstrap": "^4.6.3" in composer.json).composer require dndarksan/laravel-livewire-datatable-only-arrays
php artisan make:dt-table ExampleTable
encabezados(), datos(), and filasPorPagina() in the generated class.sorteable, searchable) for interactivity.@livewire('example-table')
datos() and return as arrays (no Eloquent models directly).public function datos(): array {
return User::query()->get()->toArray();
}
encabezados).livewire-tables for server-side).| Risk | Impact | Mitigation |
|---|---|---|
| Bootstrap 4/5 conflict | Broken UI or JS errors | Isolate CSS/JS or use a wrapper. |
| Livewire v3 migration | Package incompatibility | Fork and adapt or switch to livewire-tables. |
| Large dataset load | Slow rendering or memory leaks | Implement server-side processing. |
| Customization limits | Workarounds for missing features | Extend the package or use alternatives. |
encabezados configuration.How can I help you explore Laravel packages today?