© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago
schwartzmj

Very stuck on BelongsToMany / Pivot table with a restriction

I have a pretty straightforward use case, but the implementation in Filament is throwing me for a loop.

Imagine Products that have many Options that in turn have many values (Size w/ SM, MD, LG and Color w/ Red, Blue). This part is straightfoward. The user creates Options and in turn the values.

Now the user needs to create a ProductVariant. They need to select one of each ProductOptionValue (e.g SM & Red), but should not be able to select e.g. SM & LG. In other words, they have to select one option from each.

I've tried so many things I'm not sure if it's even worth pasting it all in here as it has become a mess, but nothing seems to be working.

Am I better off just creating a custom page, form, or field type?
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

Repeater belongsToMany pivot - empty
FilamentFFilament / ❓┊help
15mo ago
relationshipmanager for belongsToMany relationship with pivot table tries to insert into wrong table
FilamentFFilament / ❓┊help
3y ago
Roles on pivot table
FilamentFFilament / ❓┊help
2y ago
Repeater with pivot table
FilamentFFilament / ❓┊help
11mo ago