version(), '7.0.0') < 0) { return parent::serializeDate($date); } return $date->format(Carbon::DEFAULT_TO_STRING_FORMAT); } }