protected function asDateTime($value)
    {
        // Legacy support for Laravel 5.0
        if (!$value instanceof Carbon) {
            return Carbon::instance($value);
        }

        return parent::asDateTime($value);
    }
protected function asDateTime($value)
    {
        // Legacy support for Laravel 5.0
        if (!$value instanceof Carbon) {
            return Carbon::instance($value);
        }

        return parent::asDateTime($value);
    }
protected function asDateTime ( $ value ) { // Legacy support for Laravel 5.0 if ( ! $ value instanceof Carbon ) { return Carbon :: instance ( $ value ) ; } return parent :: asDateTime ( $ value ) ; }
Ensure Timestamps are returned in DateTime.

@param \DateTime $value

@return \DateTime
Ensure Timestamps are returned in DateTime .