protected function preparePayload($id, $payload)
    {
        return json_encode(array_merge(json_decode($payload, true), [
            'id' => $id,
            'attempts' => 0,
            'retry_of' => $this->id,
        ]));
    }
protected function preparePayload($id, $payload)
    {
        return json_encode(array_merge(json_decode($payload, true), [
            'id' => $id,
            'attempts' => 0,
            'retry_of' => $this->id,
        ]));
    }
protected function preparePayload ( $ id , $ payload ) { return json_encode ( array_merge ( json_decode ( $ payload , true ) , [ 'id' => $ id , 'attempts' => 0 , 'retry_of' => $ this -> id , ] ) ) ; }
Prepare the payload for queueing.

@param  string  $id
@param  string  $payload
@return string
Prepare the payload for queueing .