同步删除回复报错?
使用$thread->replies()->delete();
会报错;25 bind or column index out of range (SQL: delete from "replies" where "replies"."thread_id" = App\Reply and "replies"."thread_id" is not null)
换成下面后错误消失,暂不知具体原因Reply::query()->where('thread_id',$thread->id)->delete();
推荐文章: