Can not get attributes of Illuminate\Support\Fluent on second nested property validation #51385
Unanswered
sinhnv1991
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Can not get attributes of Illuminate\Support\Fluent on second nested property validation
$validator->sometimes('items.*.options.list', [
'required',
'array',
], function (Fluent $input, Fluent $item) {
return $item->enable;// $item attributes will return empty array, can not get enable property
});a
Beta Was this translation helpful? Give feedback.
All reactions