mirror of
https://github.com/Karaka-Management/oms-Script.git
synced 2026-02-07 08:58:40 +00:00
datetime is jsonserializable, didn't know that :)
This commit is contained in:
parent
4a22c0848b
commit
466dbb542a
|
|
@ -290,7 +290,7 @@ class Report implements \JsonSerializable
|
||||||
return [
|
return [
|
||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
'createdBy' => $this->createdBy,
|
'createdBy' => $this->createdBy,
|
||||||
'createdAt' => $this->createdAt->format('Y-m-d H:i:s'),
|
'createdAt' => $this->createdAt,
|
||||||
'name' => $this->title,
|
'name' => $this->title,
|
||||||
'description' => $this->description,
|
'description' => $this->description,
|
||||||
'status' => $this->status,
|
'status' => $this->status,
|
||||||
|
|
|
||||||
|
|
@ -384,7 +384,7 @@ class Template implements \JsonSerializable
|
||||||
return [
|
return [
|
||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
'createdBy' => $this->createdBy,
|
'createdBy' => $this->createdBy,
|
||||||
'createdAt' => $this->createdAt->format('Y-m-d H:i:s'),
|
'createdAt' => $this->createdAt,
|
||||||
'name' => $this->name,
|
'name' => $this->name,
|
||||||
'description' => $this->description,
|
'description' => $this->description,
|
||||||
'status' => $this->status,
|
'status' => $this->status,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user