front toDos almost position, checked, delete

This commit is contained in:
2020-05-02 10:27:47 +02:00
parent 6d29dbc9bd
commit 2c0536a864
7 changed files with 161 additions and 158 deletions

View File

@@ -22,7 +22,7 @@ class ToDo extends JsonResource
'data' => [
'name' => $this->name,
'order' => (int) $this->order,
'checked_at' => optional($this->checked_at)->diffForHumans(),
'checked_at' => ($this->checked_at) ? 1 : null,
'last_updated' => $this->updated_at->diffForHumans(),
]
]