We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 46133d6 + 26c5395 commit 489041cCopy full SHA for 489041c
docs/filters/creating-filters.md
@@ -97,6 +97,26 @@ DateTime filters are HTML datetime-local elements and act the same as date filte
97
98
Make sure to look at [all available configurations](available-methods#filter-methods) on the Filter classes.
99
100
+## Number Filters
101
+
102
+Number filters are just HTML number inputs.
103
104
+```php
105
+public function filters(): array
106
+{
107
+ return [
108
+ NumberFilter::make('Amount')
109
+ ->config([
110
+ 'min' => 0,
111
+ 'max' => 100,
112
+ ])
113
+ ->filter(function(Builder $builder, string $value) {
114
+ $builder->where('amount', '<', $value);
115
+ }),
116
+ ];
117
+}
118
+```
119
120
## Text Filters
121
122
Text filters are just HTML text fields.
0 commit comments