© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
sathish

Laravel filament relationship manager (attach two belongtomany attribute)

Here database tables struture

1. Products table
products
- name

2. Features table
features
- name

3. Types table
types
- name
- feature_id

4. Pivot table (products and features)
product_feature
- product_id
- feature_id

5. Pivot table (products and types)
product_type
- product_id
- type_id




In the product resource,
I need to attach product_features and product_types to a product when edit a product (both are belongsTomany relationship)

Example:
Attach -> features -> Attach -> type (droplist which has related feature_id of types)
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

Relationship manager not showing attribute.
FilamentFFilament / ❓┊help
15mo ago
Attach in relationship manager is Timing out
FilamentFFilament / ❓┊help
3y ago
Filament attach
FilamentFFilament / ❓┊help
3y ago
Attach relation manager
FilamentFFilament / ❓┊help
3y ago