Skip to content

Commit e1dc089

Browse files
authored
Update README.md (#41)
When format MM-YY Validation gives Exceptions.
1 parent 0c20ee1 commit e1dc089

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ $request->validate(
9595
// CardExpirationDate requires date format
9696
$request->validate(
9797
['expiration_date' => '02-18'],
98-
['expiration_date' => ['required', new LVR\CreditCard\CardExpirationDate('MM-YY')]]
98+
['expiration_date' => ['required', new LVR\CreditCard\CardExpirationDate('my')]]
9999
);
100100
```
101101
#### Directly

0 commit comments

Comments
 (0)