We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 678709b commit 6403bd8Copy full SHA for 6403bd8
src/Eloquent/Model.php
@@ -333,6 +333,8 @@ public function attributesToArray()
333
$value = (string) $value;
334
} elseif ($value instanceof Binary) {
335
$value = (string) $value->getData();
336
+ } elseif ($value instanceof UTCDateTime) {
337
+ $value = $this->serializeDate($value->toDateTime());
338
} elseif (is_array($value)) {
339
foreach ($value as &$embedValue) {
340
$convertMongoObjects($embedValue);
0 commit comments