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 8f38002 commit 9ef6c69Copy full SHA for 9ef6c69
src/Transformers/DocumentTransformer.php
@@ -10,9 +10,10 @@ class DocumentTransformer extends TransformerAbstract
10
public function transform(Document $document)
11
{
12
return [
13
- 'type' => $document->type,
14
- 'title' => $document->title,
15
- 'body' => $document->body
+ 'type' => $document->type,
+ 'title' => $document->title,
+ 'body' => $document->body,
16
+ 'updatedAt' => $this->updated_at->toIso8601String()
17
];
18
}
19
0 commit comments