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

Text Filters

Text Filters

Text filters are just HTML text fields.

1public function filters(): array
2{
3 return [
4 TextFilter::make('Name')
5 ->config([
6 'placeholder' => 'Search Name',
7 'maxlength' => '25',
8 ])
9 ->filter(function(Builder $builder, string $value) {
10 $builder->where('users.name', 'like', '%'.$value.'%');
11 }),
12 ];
13}