wzq лет назад: 5
Родитель
Сommit
1056240b4d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Repositories/PostRepositories.php

+ 1 - 1
app/Repositories/PostRepositories.php

@@ -301,7 +301,7 @@ class PostRepositories
             $comment = $this->postComment->create($data);
 
             if($comment->parent_id){
-                $this->postComment->where('parent_id', $comment->parent_id)->increment('reply_count');
+                $this->postComment->where('id', $comment->parent_id)->increment('reply_count');
             }
 
             DB::commit();