Skip to content

There is no way to set MM/YY format for CardExpirationDate #44

Open
@kirc0de

Description

@kirc0de

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions