FilamentF
Filament3y ago
Kaan

Preventing Automatic Record Creation in Associated Table with BelongsToMany Relationship

Hello,

I am working with a BelongsToMany relationship and using Filament's Relation Managers. When I select multiple options and submit the form, records are automatically added to the pivot table, which is the desired behavior. However, I do not want these records to be created in the other table that's associated via the relationship. Is there a way to prevent this automatic record creation in the associated table while still allowing the data to be stored in the pivot table?

Thank you for your assistance!
Was this page helpful?