I have a model that has the following in it:
protected $dates = ['created_at','modified_at','deleted_at', 'my_date'];
The same model is embedded in another document (using Mongo).
Now when I try to get the min and max dates in the model by doing:
$minDate = $doctor->cases()->min('embedded_doc.my_date');
$maxDate = $doctor->cases()->max('embedded_doc.my_date');
What I am getting are instances of UTCDateTime and not Carbon. The documentation states that if I list the date in the $dates array it would return Carbon instances. I am not clear. What am I missing?