© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
13 replies
*

Inserting pivot data without RelationManager

I have a multiple select on an edit page, has a
belongsToMany()
belongsToMany()
relationship.

I want to inject something to be saved in a column in the pivot table.

I found out that the relationship is saved in
HasState::getState()
HasState::getState()
, but could not find a way to inject additional data to it.

Tried
mutateFormDataBeforeSave()
mutateFormDataBeforeSave()
in the EditThing component, but that gets called after
getState()
getState()
, so no effect.

Any help would be appreciated.
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

Edit RelationManager pivot array data
FilamentFFilament / ❓┊help
12mo ago
HasMany Table Relationship pivot/group RelationManager
FilamentFFilament / ❓┊help
2y ago
sortable pivot data
FilamentFFilament / ❓┊help
3y ago