Skip to content

Remote validation only validates the first array element #465

Open
@bytestream

Description

@bytestream

Subject of the issue

Remote validation will only validate the first item in an array.

Your environment

  • version of this package: 4.0.0
  • version of Laravel: 6.18.3

Steps to reproduce

<select name="domain">
    <option value="http://google.com">http://google.com</option>
    <option value="http://jquery_dev">http://jquery_dev</option>
</select>
[
    'domain' => [ 'required', 'array' ],
    'domain.*' => ['url'],
];

Expected behaviour

Should fail because jquery_dev is not valid - the url validation does not permit _ in URLs

Actual behaviour

Validation passes because it only validates domain.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions