Level 51
I'd recommend you to get additional field type for that use case such as https://novapackages.com/packages/dillingham/nova-items-field provides
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
How can I validate array field?
Text::make($lang->name, 'translation[]')->rules(['translation.*'=>'required']);
In the model is
protected $casts = [
'translation'=>'array'
];
always get validation.required error for filled out input
I also tried without [] in the name of the field, but in this case is not recognized as an array
Please or to participate in this conversation.