We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5fd9a2 commit 1ccd3c5Copy full SHA for 1ccd3c5
src/Http/Resources/Comment/CommentResource.php
@@ -29,6 +29,7 @@ public function toArray(Request $request): array
29
'content' => $this->content,
30
'status' => $this->status,
31
'author' => AuthorResource::make($this->author),
32
+ 'replies' => CommentResource::collection($this->replies),
33
'likes_count' => $this->likesCountDigital(),
34
'is_liked' => $this->isLikedBy($userId),
35
];
0 commit comments