Closed
Description
- Laravel-mongodb Version: 3.7
- PHP Version: 7.4.9
Steps to reproduce
- create model with propery "nested.date"
- return it as JsonResource for example
- you will date in "2020-10-23 09:12:19" format where other dates in "2020-10-23T09:12:19.512000Z"
It looks like $this->serializeDate() should be called in Mongodb/Eloquent/Model.php#L219 in order to mimic Eloquent's addDateAttributesToArray() in Eloquent/Concerns/HasAttributes.php#L168 trait