src/Utils/Timestamp.php
public static function toMilliseconds($value = null)
    {
        if (! $value) {
            return null;
        }

        if (! $value instanceof Carbon) {
            $value = Carbon::parse($value); // attempt to parse it
        }

        return (int) $value->timestamp * 1000;
    }
public static function toMilliseconds($value = null)
    {
        if (! $value) {
            return null;
        }

        if (! $value instanceof Carbon) {
            $value = Carbon::parse($value); // attempt to parse it
        }

        return (int) $value->timestamp * 1000;
    }
public static function toMilliseconds ( $ value = null ) { if ( ! $ value ) { return null ; } if ( ! $ value instanceof Carbon ) { $ value = Carbon :: parse ( $ value ) ; // attempt to parse it } return ( int ) $ value -> timestamp * 1000 ; }
Converts carbon instance to milliseconds

@param PHP unix timestamp (seconds) $timestamp
Converts carbon instance to milliseconds