Skip to content

Commit 6a18bd2

Browse files
authored
Merge pull request #97 from cslant/feature/reply-comment
feat: api reply comment
2 parents e5fd9a2 + 1ccd3c5 commit 6a18bd2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Http/Resources/Comment/CommentResource.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public function toArray(Request $request): array
2929
'content' => $this->content,
3030
'status' => $this->status,
3131
'author' => AuthorResource::make($this->author),
32+
'replies' => CommentResource::collection($this->replies),
3233
'likes_count' => $this->likesCountDigital(),
3334
'is_liked' => $this->isLikedBy($userId),
3435
];

0 commit comments

Comments
 (0)