refact list front

This commit is contained in:
Romain committed 2020-05-02 11:05:16 +02:00
1 parent 2c0536a864
commit 033f563595
3 files changed
+39 -5

No files matched your search

+1
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(),
];
}
}