美文网首页
thinkphp5 的 belongsToMany 多对多关联用

thinkphp5 的 belongsToMany 多对多关联用

作者: tangzhentian | 来源:发表于2020-06-13 14:54 被阅读0次
    belongsToMany参数说明

    文档解释:

    belongsToMany方法的参数如下:

    belongsToMany('关联模型名','中间表名','外键名','当前模型关联键名',['模型别名定义']);

    相关文章

      网友评论

          本文标题:thinkphp5 的 belongsToMany 多对多关联用

          本文链接:https://www.haomeiwen.com/subject/kxnatktx.html