问答 / 1268 / 1 / 创建于 5年前
打算给Topic添加标签功能,使用attach()方法报错。 错误: 是5.5不支持attach()了吗?
是我自己写法的问题,应该是$topic->tags()->attach($tags)
$topic->tags()->attach($tags)
我要举报该,理由是:
推荐文章: