-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
[5.2] Validating array using asterisk (*) against another array field doesn't do anything #11648
Comments
Thanks for getting in touch.
I'd have to assume so. Ping @taylorotwell for details. |
I have the same issue if a little extra code helps. If I do an asterisk for a validation rule it doesn't work, but if I add a hard coded index, it works correctly. Doesn't work:
Works:
If any more code is needed from me let me know! |
This is a proposed fix #11927 |
Although that fix has been merged, I'm still finding this issue, and this issue remains open. Can anyone else confirm that this isn't fixed in all cases? I'm trying to use the
|
I have another issue.
That works and i can see errors in my form, when one of elements fails validation, but when i add new |
Hi,
Using Laravel 5.2.6, I'm extending the Request class and returning a rule, such as:
When trying to validate a multi-dimensional array field against another multi-dimensional array field using the asterisk (*) approach, it doesn't have any impact. So, it's not clear how to get the following to function if the target field also includes an asterisk:
Is this approach not yet supported?
Thanks.
The text was updated successfully, but these errors were encountered: