You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I want to override nova original file fields or use other public components about the file field, it will not work. I found this component compiles the original file fields into dist, and replace the original file filed using the modified one. So is there anyway to override it?
/** * Set the custom component if need be. */protectedfunctionsetComponent(Field$field)
{
if ($fieldinstanceof BelongsTo) {
$field->component = 'nested-form-belongs-to-field';
} elseif ($fieldinstanceof File) {
$field->component = 'nested-form-file-field';
} elseif ($fieldinstanceof MorphTo) {
$field->component = 'nested-form-morph-to-field';
}
return$field;
}
The text was updated successfully, but these errors were encountered:
When I want to override nova original file fields or use other public components about the file field, it will not work. I found this component compiles the original file fields into dist, and replace the original file filed using the modified one. So is there anyway to override it?
The text was updated successfully, but these errors were encountered: