فهرست منبع

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,
             "title"=> $this->title,
             "content"=> $this->content,
             "content"=> $this->content,
             "parent"=> $this->parent,
             "parent"=> $this->parent,
+            "children_count"=> $this->children_count,
             "editor"=> StudioApi::getById($this->editor_uid),
             "editor"=> StudioApi::getById($this->editor_uid),
             "res_id"=>$this->res_id,
             "res_id"=>$this->res_id,
             "res_type"=> $this->res_type,
             "res_type"=> $this->res_type,