Laravel filament relationship manager (attach two belongtomany attribute)

Here database tables struture

  1. Products table
    products
  2. name
  3. Features table
    features
  4. name
  5. Types table
    types
  6. name
  7. feature_id
  8. Pivot table (products and features)
    product_feature
  9. product_id
  10. feature_id
  11. Pivot table (products and types)
    product_type
  12. product_id
  13. 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)
Was this page helpful?