Level 12
Ok. I found the problem. I had to rename "type" in to something else like "contact_type" in my mysql table.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi. I use Nova and have this in my resource:
MorphToMany::make('Contacts')->fields(function () {
return [
Select::make('Type', 'type')
->options([
'company',
'other'
])
->required(),
];
})->searchable(),
It is also show and seems to work as expected. But the value is not saved in my pivot table. Does anybody have an idea? thx
Ok. I found the problem. I had to rename "type" in to something else like "contact_type" in my mysql table.
Please or to participate in this conversation.