emild / laravel-livewire-tables
A dynamic table component for Laravel Livewire
Fund package maintenance!
rappasoft
Requires
- php: ^7.4|^8.0
- illuminate/contracts: ^8.0
- livewire/livewire: ^2.6
- spatie/laravel-package-tools: ^1.4.3
Requires (Dev)
- ext-sqlite3: *
- orchestra/testbench: ^6.13
- phpunit/phpunit: ^9.3
- spatie/laravel-ray: ^1.9
- vimeo/psalm: ^4.4
- dev-master
- 1.21.3
- 1.21.1
- 1.21.0
- 1.20.9
- 1.20.8
- 1.20.7
- 1.20.6
- 1.20.5
- 1.20.4
- 1.20.3
- 1.20.2
- v1.20.1
- v1.20.0
- v1.19.3
- v1.19.2
- v1.19.1
- v1.19.0
- v1.18.0
- v1.17.0
- v1.16.0
- v1.15.0
- v1.14.0
- v1.13.0
- v1.12.0
- v1.11.0
- v1.10.4
- v1.10.3
- v1.10.2
- v1.10.1
- v1.10.0
- v1.9.0
- v1.8.0
- v1.7.1
- v1.7.0
- v1.6.1
- v1.6.0
- v1.5.1
- v1.5.0
- v1.4.0
- v1.3.1
- v1.3.0
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.0
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- v0.4.0
- v0.3.3
- v0.3.2
- v0.3.1
- v0.3.0
- v0.2.1
- v0.2.0
- v0.1.6
- v0.1.5
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- dev-develop
This package is auto-updated.
Last update: 2024-10-16 22:43:54 UTC
README
A dynamic Laravel Livewire component for data tables.
Bootstrap 4 Demo | Bootstrap 5 Demo | Tailwind Demo | Demo Repository
Installation
You can install the package via composer:
composer require rappasoft/laravel-livewire-tables
Please see the rest of the installation instructions.
Usage
Read the documentation
Basic Example
<?php namespace App\Http\Livewire\Admin\User; use App\Domains\Auth\Models\User; use Illuminate\Database\Eloquent\Builder; use Rappasoft\LaravelLivewireTables\DataTableComponent; use Rappasoft\LaravelLivewireTables\Views\Column; class UsersTable extends DataTableComponent { public function columns(): array { return [ Column::make('Name') ->sortable() ->searchable(), Column::make('E-mail', 'email') ->sortable() ->searchable(), Column::make('Verified', 'email_verified_at') ->sortable(), ]; } public function query(): Builder { return User::query(); } }
See advanced example
To-do/Roadmap
- Bootstrap 4 Template
- Bootstrap 5 Template
- Sorting By Relationships
- User Column Selection
- Drag & Drop (beta)
- Column Search
- Greater Configurability
- Collection/Query Support
- Test Suite (WIP)
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please e-mail anthony@rappasoft.com to report any security vulnerabilities instead of the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.