public function chain($chain)
    {
        $this->chained = collect($chain)->map(function ($job) {
            return serialize($job);
        })->all();

        return $this;
    }
public function chain($chain)
    {
        $this->chained = collect($chain)->map(function ($job) {
            return serialize($job);
        })->all();

        return $this;
    }
public function chain ( $ chain ) { $ this -> chained = collect ( $ chain ) -> map ( function ( $ job ) { return serialize ( $ job ) ; } ) -> all ( ) ; return $ this ; }
Set the jobs that should run if this job is successful.

@param  array  $chain
@return $this
Set the jobs that should run if this job is successful .