Laravel filament relationship manager (attach two belongtomany attribute)
Here database tables struture
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)
- Products table
products - name
- Features table
features - name
- Types table
types - name
- feature_id
- Pivot table (products and features)
product_feature - product_id
- feature_id
- Pivot table (products and types)
product_type - product_id
- type_id
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)