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.
1 parent 154c408 commit 53a3309Copy full SHA for 53a3309
Readme.md
@@ -280,6 +280,29 @@ class User extends Model
280
}
281
```
282
283
+... Or with implementation of `Filterable` method:
284
+
285
286
+```php
287
288
+use LaravelLegends\EloquentFilter\HasFilter;
289
+use LaravelLegends\EloquentFilter\Contracts\Filterable;
290
291
+class User extends Model implements Filterable
292
+{
293
+ use HasFilter;
294
295
+ public function getFilterable(): array
296
+ {
297
+ return [
298
+ 'name' => 'contains',
299
+ 'phone.number' => 'contains',
300
+ 'price' => ['max', 'min'],
301
+ 'profile_id' => '*',
302
+ ];
303
+ }
304
+}
305
+```
306
307
### Using the allow method
308
0 commit comments