nova-repeatable-fields
nova-repeatable-fields copied to clipboard
Allow validation of the fields
Example:
Repeater::make('Description List')
->addButtonText('Add row')
->addField([
'label' => 'Type',
'type' => 'select',
'name' => 'type',
'options' => [ 'advantage' => '+', 'disadvantage' => '-' ],
'placeholder' => '+/-',
'width' => 'w-1/5',
])
->addField([
'label' => 'Text',
'type' => 'text',
'name' => 'text',
'width' => 'w-4/5',
])
->rules(['text' => 'required', 'type' => 'required'])
@fourstacks This would be a great addition to your field!