public static function createId($queue, $class, $data = null, $run_at = 0)
    {
        $id = dechex(crc32($queue)).
            dechex(microtime(true) * 1000).
            md5(json_encode($class).json_encode($data).$run_at.uniqid('', true));

        return substr($id, 0, self::ID_LENGTH);
    }
public static function createId($queue, $class, $data = null, $run_at = 0)
    {
        $id = dechex(crc32($queue)).
            dechex(microtime(true) * 1000).
            md5(json_encode($class).json_encode($data).$run_at.uniqid('', true));

        return substr($id, 0, self::ID_LENGTH);
    }
public static function createId ( $ queue , $ class , $ data = null , $ run_at = 0 ) { $ id = dechex ( crc32 ( $ queue ) ) . dechex ( microtime ( true ) * 1000 ) . md5 ( json_encode ( $ class ) . json_encode ( $ data ) . $ run_at . uniqid ( '' , true ) ) ; return substr ( $ id , 0 , self :: ID_LENGTH ) ; }
Create a new job id

@param  string $queue  The name of the queue to place the job in
@param  string $class  The name of the class that contains the code to execute the job
@param  array  $data   Any optional arguments that should be passed when the job is executed
@param  int    $run_at Unix timestamp of when to run the job to delay execution
@return string
Create a new job id