我在我构建的模型中实现了关系控制器..
父模型表单中列出的子模型..它工作得很好,但它不符合我的要求..
事情是
列出的子模型只是与子模型中定义的父模型 ID 相关的模型。
所以子模型记录只属于一个父模型记录,所以当我创建新记录时,子模型不显示任何记录..
i need all child model records display in all parent model records, so
even when we create new record, all the child model is also listed..
我尝试使用belongsToMany 关系,但它的方式与belongsTo 关系相同。
有办法吗?