-
Notifications
You must be signed in to change notification settings - Fork 11.7k
Closed
Description
Hello everybody.
I'm trying to use array validation introduced in Laravel 5.2.
But I think a bug is present. In fact, there is my array received by the request (debugged after my form submission) :
array:2 [▼
"_token" => "oqsdgfxcGBSmxjaZO40wBmnYHfivaHv3"
"fields" => array:2 [▼
"fr" => array:3 [▼
"name" => ""
"slug" => ""
"content" => "qdzd"
]
"es" => array:3 [▼
"name" => ""
"slug" => ""
"content" => ""
]
]
]
In my validation rules, I doing this :
return [
'fields.*.content' => 'required_with:fields.*.name'
];Normally in this case, the validation failed on the fields[fr][content], because the name was not set yet right ?
I'm so sorry if the bug is provided by between my chair and my desktop ...
Metadata
Metadata
Assignees
Labels
No labels