Laravel Livewire Tables Documentation

🎉 Enjoying this package? Consider sponsoring me on GitHub or buying me a beer.

This is the documentation for v3. You can switch versions in the menu at the top. Check your current version with the following command:

composer show rappasoft/laravel-livewire-tables

Multi-Select Dropdown Filters

Multi-select dropdown Filters

Multi-select dropdown filters are a simple dropdown list. The user can select multiple options from the list. There is also an 'All' option that will select all values

1use Rappasoft\LaravelLivewireTables\Views\Filters\MultiSelectDropdownFilter;
3public function filters(): array
5 return [
6 MultiSelectDropdownFilter::make('Tags')
7 ->options(
8 Tag::query()
9 ->orderBy('name')
10 ->get()
11 ->keyBy('id')
12 ->map(fn($tag) => $tag->name)
13 ->toArray()
14 )
15 ->setFirstOption('All Tags'),
16 ];