How to get all children of a model through another model that has a many-to-many relationship?

前端 未结 0 856
野性不改
野性不改 2021-01-25 00:06

I have a multi-level category model with the columns id, name, category_id

I then have a Product model, which has many SubProduct m

相关标签:
回答
  • 消灭零回复
提交回复
热议问题