소스 검색

add children_count

visuddhinanda 3 년 전
부모
커밋
5eb8994a1b
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      app/Http/Resources/DiscussionResource.php

+ 1 - 0
app/Http/Resources/DiscussionResource.php

@@ -24,6 +24,7 @@ class DiscussionResource extends JsonResource
             "title"=> $this->title,
             "content"=> $this->content,
             "parent"=> $this->parent,
+            "children_count"=> $this->children_count,
             "editor"=> StudioApi::getById($this->editor_uid),
             "res_id"=>$this->res_id,
             "res_type"=> $this->res_type,