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

Number Filters

Number filters are just HTML number inputs.

1public function filters(): array
2{
3 return [
4 NumberFilter::make('Amount')
5 ->config([
6 'min' => 0, // Minimum Value Accepted
7 'max' => 100, // Maximum Value Accepted
8 'placeholder' => 'Enter Number 0 - 100', // A placeholder value
9 ])
10 ->filter(function(Builder $builder, string $value) {
11 $builder->where('amount', '<', $value);
12 }),
13 ];
14}