Skip to content

Validation problem with "*.name" after update from Laravel 5.2.30 to next versions #14232

Closed
@migoca

Description

@migoca

After upgrading Laravel from 5.2.30 to .31 and next versions I have problem with these types of validations:

  public function rules()
    {
        return [
            '*.name' => 'required',
            '*.slug' => 'required|alpha_dash'
        ];
    }

I use this to validate for multiple languages: es.name, en.name, it.name, etc. But with the update the result is:

The _token.name field is required.
The _token.slug is required.

In my form i have:

{!! csrf_field() !!}
### And the inputs:
<input type="text" name="es[name]">
<input type="text" name="en[name]">
<input type="text" name="es[slug]">
<input type="text" name="en[slug]">

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions