You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Validator class allows for custom attribute strings to be passed in to replace the original attribute name. However, this functionality appears to be broken when using Rule::forEach or anything that relies on NestedRules.
Steps To Reproduce
Create a validator containing a Rule::forEach and custom attributes.
As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub.
If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team.
Laravel Version
11.0
PHP Version
8.3
Database Driver & Version
No response
Description
The
Validator
class allows for custom attribute strings to be passed in to replace the original attribute name. However, this functionality appears to be broken when usingRule::forEach
or anything that relies onNestedRules
.Steps To Reproduce
Create a validator containing a
Rule::forEach
and custom attributes.Expected messages array:
Actual messages array:
The text was updated successfully, but these errors were encountered: