🎉 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
Setting a default
You can set a default filter by overriding the $filters
property on the component using the same key you used to define your filters()
method;
1public array $filters = [2 'type' => 'user',3];
The value must match one of the values specified on your filter's options.