dillingham / nova-items-field

Laravel Nova array items field with sorting & validation
MIT License
113 stars 32 forks source link

Required Validation rule is't working #22

Closed ahmed1515 closed 3 years ago

ahmed1515 commented 3 years ago

Required validation is't working.

ahmed1515 commented 3 years ago
Items::make('Options', 'options->l1')->rules([
        'options.l1.*' => 'required|array|min:3',
])->onlyOnForms(),

Data format: option->{"l1":["yes","no"]}

dillingham commented 3 years ago

Change it to dot notation instead of arrows and check out this issue.

https://github.com/dillingham/nova-items-field/issues/16