Skip to content

Commit e643df2

Browse files
committed
fix: docs for datetime filter
1 parent 95c2436 commit e643df2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs-v2/content/en/search/basic-filters.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,18 @@ Request:
276276
GET: /api/restify/posts?published_at=2020-12-01
277277
```
278278

279+
If the request contains two dates instead of one, it will perform a `whereBetween` query:
280+
281+
```http request
282+
GET: /api/restify/posts?published_at=2020-12-01,2021-01-01
283+
```
284+
285+
Eloquent will do:
286+
287+
```php
288+
$query->whereBetween('published_at', ['2020-12-01', '2021-01-01']);
289+
```
290+
279291
### Match between
280292

281293
The `between` match works similarly as the `whereBetween` Eloquent method:

0 commit comments

Comments
 (0)