Open
Description
I'm trying to do like this:
return [
'card.expirationDate' => ['required', new CardExpirationDate('MM\/YY')],
// ...
];
When the lib tun passes()
method it runs inside and throw an Exception:
// This can throw Invalid Date Exception if format is not supported.
Carbon::parse($value);
There are no ways to disable this parsing or etc.
What do you think about this bug/feature? :–)
Metadata
Metadata
Assignees
Labels
No labels