Filament form can view related records, but isn't saving changes
I am looking at the parent record of a has one relationship.
Filament correctly loads the related data into the form.
When I save, Filament updates the resource (parent record) but not the related record.
The update/insert silently fails. The form is reloaded with the old data. There is no exception.
Any idea what could be causing this?
2 Replies
Please provide the form code.
It is auto-generated dynamically, but I will see what I can do.
private static function tab($section): Tab
{
$tab = Tab::make($section->name)
->schema(
[
Fieldset::make($section->name)
->relationship($section->machine)
->schema(self::componentsSchema($section))
]
);
if ($section->icon)
$tab->icon(Heroicon::tryFrom($section->icon));
return $tab;
}