src/Utils/Timestamp.php
public static function parse($timestamp = null)
    {
        if (static::isMilliseconds($timestamp)) {
            return static::fromMilliseconds($timestamp);
        }

        if ($timestamp instanceof Carbon) {
            return $timestamp;
        }

        return Carbon::parse($timestamp);
    }
public static function parse($timestamp = null)
    {
        if (static::isMilliseconds($timestamp)) {
            return static::fromMilliseconds($timestamp);
        }

        if ($timestamp instanceof Carbon) {
            return $timestamp;
        }

        return Carbon::parse($timestamp);
    }
public static function parse ( $ timestamp = null ) { if ( static :: isMilliseconds ( $ timestamp ) ) { return static :: fromMilliseconds ( $ timestamp ) ; } if ( $ timestamp instanceof Carbon ) { return $ timestamp ; } return Carbon :: parse ( $ timestamp ) ; }
Attempts to parse a date into Carbon

@param  Carobon|String|Integer $timestamp
@return \Carbon\Carbon
Attempts to parse a date into Carbon