src/Job.php
public function createPayload()
    {
        $payload = $this->extras;

        $payload['job'] = $this->job;
        $payload['data'] = $this->data;

        // Create special payload if it is a Closure
        if ($this->job instanceof \Closure) {
            $payload['closure'] = serialize(new SerializableClosure($this->job));
            $payload['job'] = $this->closureClass;
        }

        return $payload;
    }
public function createPayload()
    {
        $payload = $this->extras;

        $payload['job'] = $this->job;
        $payload['data'] = $this->data;

        // Create special payload if it is a Closure
        if ($this->job instanceof \Closure) {
            $payload['closure'] = serialize(new SerializableClosure($this->job));
            $payload['job'] = $this->closureClass;
        }

        return $payload;
    }
public function createPayload ( ) { $ payload = $ this -> extras ; $ payload [ 'job' ] = $ this -> job ; $ payload [ 'data' ] = $ this -> data ; // Create special payload if it is a Closure if ( $ this -> job instanceof \ Closure ) { $ payload [ 'closure' ] = serialize ( new SerializableClosure ( $ this -> job ) ) ; $ payload [ 'job' ] = $ this -> closureClass ; } return $ payload ; }
Creates a serialized payload

@return []
Creates a serialized payload