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 843e13f commit 3db960aCopy full SHA for 3db960a
docs/docs/4.0/search/search.md
@@ -159,12 +159,14 @@ GET: /api/restify/users?is_active=true
159
You can implement a match filter definition, and specify for example related repository:
160
161
```php
162
- public static $match = [
+ protected static function booted()
163
+ static::$match = [
164
'title' => 'string',
165
'user_id' => MatchFilter::make()
166
->setType('int')
167
->setRelatedRepositoryKey(UserRepository::uriKey()),
-];
168
+ ];
169
+ }
170
```
171
When you will list this filter (with `posts/filters?only=matches`), you will get:
172
0 commit comments