public function emailOutputOnFailure($addresses)
    {
        $this->ensureOutputIsBeingCaptured();

        $addresses = Arr::wrap($addresses);

        return $this->onFailure(function (Mailer $mailer) use ($addresses) {
            $this->emailOutput($mailer, $addresses, false);
        });
    }
public function emailOutputOnFailure($addresses)
    {
        $this->ensureOutputIsBeingCaptured();

        $addresses = Arr::wrap($addresses);

        return $this->onFailure(function (Mailer $mailer) use ($addresses) {
            $this->emailOutput($mailer, $addresses, false);
        });
    }
public function emailOutputOnFailure ( $ addresses ) { $ this -> ensureOutputIsBeingCaptured ( ) ; $ addresses = Arr :: wrap ( $ addresses ) ; return $ this -> onFailure ( function ( Mailer $ mailer ) use ( $ addresses ) { $ this -> emailOutput ( $ mailer , $ addresses , false ) ; } ) ; }
E-mail the results of the scheduled operation if it fails.

@param  array|mixed  $addresses
@return $this
E - mail the results of the scheduled operation if it fails .