Skip to content

Commit d4b254b

Browse files
Improve filter stub
1 parent 4da262b commit d4b254b

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/eloquent-filter/Console/stubs/filters.stub

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,20 @@
22

33
namespace DummyNamespace;
44

5-
use LaravelLegends\EloquentFilter\ModelFilter;
5+
use LaravelLegends\EloquentFilter\Filters\ModelFilter;
66

77
class DummyClass extends ModelFilter
88
{
99
/**
10-
* The rules of the your filter
11-
*
10+
* The rules of filter
11+
*
12+
* @see https://github.com/LaravelLegends/eloquent-filter#what-does-it-do
1213
* @return array
13-
* @see https://github.com/LaravelLegends/eloquent-filter#max
1414
*/
1515
public function getFilterables(): array
1616
{
1717
return [
18-
// 'id' => 'exact',
19-
// 'name' => ['contains', 'ends_with']
18+
'id' => ['exact', 'not_exact'],
2019
];
2120
}
2221
}

0 commit comments

Comments
 (0)