memos order by upated & fix created

This commit is contained in:
2020-05-02 11:17:49 +02:00
parent 033f563595
commit 5ccc5aa6c9
3 changed files with 13 additions and 4 deletions

View File

@@ -23,6 +23,7 @@ class Memo extends JsonResource
'name' => $this->name,
'memo' => $this->memo,
'last_updated' => $this->updated_at->diffForHumans(),
'last_updated_timestamp' => $this->updated_at->timestamp,
'attributes' => [
'posted_by' => new UserResource($this->user),
'cover_image' => new ImageResource($this->coverImage),