This commit is contained in:
Adrian Hopek
2022-03-07 15:13:37 +01:00
parent 069109c4b0
commit f0355f56d3
4 changed files with 33 additions and 29 deletions

View File

@@ -18,8 +18,8 @@ class VacationRequestResource extends JsonResource
"user" => new UserResource($this->user),
"type" => $this->type->label(),
"state" => $this->state,
"from" => $this->from->toDisplayString(),
"to" => $this->to->toDisplayString(),
"from" => $this->from->toDisplayDate(),
"to" => $this->to->toDisplayDate(),
"comment" => $this->comment,
"days" => VacationResource::collection($this->vacations),
];