Skip to content

Commit

Permalink
Fixed a typo
Browse files Browse the repository at this point in the history
Updated `card_card_number` to `credit_card_number`.
  • Loading branch information
sumityadav authored Nov 18, 2018
1 parent 5823b9a commit 267712b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ If you would like the `:attribute` portion of your validation message to be repl
Sometimes you may need the `:value` portion of your validation message to be replaced with a custom representation of the value. For example, consider the following rule that specifies that a credit card number is required if the `payment_type` has a value of `cc`:

$request->validate([
'card_card_number' => 'required_if:payment_type,cc'
'credit_card_number' => 'required_if:payment_type,cc'
]);

If this validation rule fails, it will produce the following error message:
Expand Down

0 comments on commit 267712b

Please sign in to comment.