© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•15mo ago•
24 replies
sdousley

belongsToMany column cannot be null

Hi

I have a database, which is defined by external sources, so structure cannot be amended.

I have a
users
users
table, which links to a
reply
reply
table using
username
username
field on both tables. Then on the
reply
reply
table is a
value
value
table, which links to
groups.name
groups.name


I have setup the relations, and doing a get on users and groups with the relation shows the related results.

Now, I have a RelationManager for Groups on the User resource, but when I try to attach groups, I just get an error that "Column 'value' cannot be null".

Has anyone come across this in the past, and if so, know how I can solve this. I suspect it's because of the non-standard column names, but I've got the relationships working fine.
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

Null state for table column
FilamentFFilament / ❓┊help
3y ago
TagsInput belongsToMany
FilamentFFilament / ❓┊help
2y ago
TextColumn BelongsToMany
FilamentFFilament / ❓┊help
2y ago
Relationship belongstoMany
FilamentFFilament / ❓┊help
3y ago