mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-18 17:38:42 +00:00
datetime is jsonserializable, didn't know that :)
This commit is contained in:
parent
8f89ae7551
commit
0565141f37
|
|
@ -440,8 +440,8 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable
|
||||||
'type' => $this->type,
|
'type' => $this->type,
|
||||||
'status' => $this->status,
|
'status' => $this->status,
|
||||||
'featured' => $this->featured,
|
'featured' => $this->featured,
|
||||||
'publish' => $this->publish->format('Y-m-d H:i:s'),
|
'publish' => $this->publish,
|
||||||
'createdAt' => $this->createdAt->format('Y-m-d H:i:s'),
|
'createdAt' => $this->createdAt,
|
||||||
'createdBy' => $this->createdBy,
|
'createdBy' => $this->createdBy,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user