🎉 Enjoying this package? Consider sponsoring me on GitHub or buying me a beer.
This is the documentation for v1 but the latest version is v3. You can switch versions in the menu on the left/at the top. Check your current version with the following command:
composer show rappasoft/laravel-livewire-tables
Commands
This feature is available in v1.12 and above
Generating Datatable Components
To generate a new datatable component you can use the make:datatable
command:
Create a new datatable component called UserTable in App\Http\Livewire
1php artisan make:datatable UserTable
Create a new datatable component called UserTable in App\Http\Livewire that uses the App\Models\User model.
1php artisan make:datatable UserTable User
Create a new datatable component called UserTable in App\Http\Livewire that uses the App\Models\User model and has a custom row view stub included.
1php artisan make:datatable UserTable User --view