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 Filters

Multi-select Filters

Multi-select filters are a list of checkboxes. 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\MultiSelectFilter;
2 
3public function filters(): array
4{
5 return [
6 MultiSelectFilter::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 ];
16}