Seiten · Laravilt
Date Filter
Filter by a date that is equal to, before, after, or between values.
php
Operators
| Method | SQL |
|---|---|
| (default) | WHERE col = 'date' |
before() | WHERE col < 'date' |
after() | WHERE col > 'date' |
between() | WHERE col BETWEEN 'from' AND 'to' (the value must be a two-item array) |
operator('<=') | Any comparison operator |
php
minDate(), maxDate(), and withTime() configure the date picker on the frontend. They don't add constraints to the query.