refact list front

This commit is contained in:
2020-05-02 11:05:16 +02:00
parent 2c0536a864
commit 033f563595
3 changed files with 39 additions and 5 deletions

View File

@@ -17,6 +17,7 @@ class ToDoCollection extends ResourceCollection
return [
'data' => $this->collection,
'to_dos_count' => $this->count(),
'to_dos_count_check' => $this->where('checked_at', '!=', null)->count(),
];
}
}