address extra fields

This commit is contained in:
edmondlang
2024-10-14 14:16:33 +08:00
parent 7b0e271459
commit f44497e50c
10 changed files with 151 additions and 31 deletions
+1
View File
@@ -18,6 +18,7 @@ class RemarkResource extends JsonResource
'id' => $this->id,
'commenter' => new UserResource($this->commenter),
'owner_id' => $this->owner_id,
'type' => $this->type,
'content' => $this->content,
'created_at' => $this->created_at->format('d-m-Y H:i'),
'long_ago' => $this->created_at->diffForHumans()