How do I ignore the minDate() validation if its the default value?
This is an infolist action which it has a a form inside. Now in my date picker the behavior is that the minimum date to be selected is the current date but the default value is example the old date like
November 6, 2023
. I just want to ignore the validation since I don't want to change the date. Can someone help me with this?
Solution:Jump to solution
I've got it working:
in the datepicker
minDate()
function it has rule:
```php
public function minDate(CarbonInterface | string | Closure | null $date): static
{...2 Replies