© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y 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!
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Clone record with relationship table
FilamentFFilament / ❓┊help
3y ago
Relationship belongstoMany
FilamentFFilament / ❓┊help
3y ago
relationshipmanager for belongsToMany relationship with pivot table tries to insert into wrong table
FilamentFFilament / ❓┊help
3y ago
BelongsToMany relationship in Repeater
FilamentFFilament / ❓┊help
3y ago