Validation for custom page
Hello everyone i have a case where when time is filled with value interval start_date and end_date must be filled how i can add validation for this case
9 Replies
the error i am getting for An attempt was made to evaluate a closure for [Filament\Forms\Components\DatePicker], but [$attribute] was unresolvable. for this part of the code
->required() ?
yeah but i also need to check is start_date > end_date
Solution
What about min date?
->minDate(fn($get, $state) => $state)
Else use a laravel validation rule
thanks bro i will try
make sure to use ->live() on both pickers
thanks
code that works for me