Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix validation message when there is a parameter with escaped dot "\." #53416

Merged
merged 3 commits into from
Nov 8, 2024

Conversation

mahbubhelal
Copy link
Contributor

When there are parameters with an escaped dot in the validation rule, the error message is weird due to the dotPlaceholder not being replaced in the error message.

For example:

Validator::make([], ['name' => 'required_without:user\.name'])->validate();

Would produce an error message like "The name field is required when usery dh uny p t1 o ns i e rfname is not present."

This PR should fix that.

@taylorotwell taylorotwell merged commit 37f96f1 into laravel:11.x Nov 8, 2024
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants