Skip to content

Commit 1ccd3c5

Browse files
committed
feat: api reply comment
1 parent e5fd9a2 commit 1ccd3c5

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)