employees endpoint

This commit is contained in:
StudioTem committed 2023-01-17 12:21:26 +01:00
1 parent 876a67604d
commit 8b64d31962
4 files changed
+15 -2

No files matched your search

+1
View File
@@ -16,6 +16,7 @@ class UserCollection extends ResourceCollection
{
return [
'data' => $this->collection,
'status' => 200
];
}
}
+1
View File
@@ -18,6 +18,7 @@ class UserResource extends JsonResource
'id' => $this->id,
'name' => $this->firstname,
'surname' => $this->lastname,
'email' => $this->email,
'code' => $this->code,
'work_start' => $this->work_start,
'work_end' => $this->work_end,