malzariey / filament-daterangepicker-filter

MIT License
105 stars 46 forks source link

Mindate validation error #25

Closed SyKenny closed 1 year ago

SyKenny commented 1 year ago

Using the date range picker field's mindate() gives a validation error. It validates the whole value instead of the first date in the string value.

DateRangePicker::make('date_covered')
    ->minDate(now()->startOfDay())
    ->maxDate(now()->startOfDay()->addYears(5))
    ->required(),

image

malzariey commented 1 year ago

Will look into it, thanks for reporting