public function email($email)
    {
        if (! is_string($email) && ! is_array($email)) {
            throw new InvalidArgumentException('The email can be only string or array');
        }

        $this->emailTo = is_array($email) ? $email : [$email];

        // Force the job to run in foreground
        $this->inForeground();

        return $this;
    }
public function email($email)
    {
        if (! is_string($email) && ! is_array($email)) {
            throw new InvalidArgumentException('The email can be only string or array');
        }

        $this->emailTo = is_array($email) ? $email : [$email];

        // Force the job to run in foreground
        $this->inForeground();

        return $this;
    }
public function email ( $ email ) { if ( ! is_string ( $ email ) && ! is_array ( $ email ) ) { throw new InvalidArgumentException ( 'The email can be only string or array' ) ; } $ this -> emailTo = is_array ( $ email ) ? $ email : [ $ email ] ; // Force the job to run in foreground $ this -> inForeground ( ) ; return $ this ; }
Set the emails where the output should be sent to.
The Job should be set to write output to a file
for this to work.

@param  string|array  $email
@return self
Set the emails where the output should be sent to . The Job should be set to write output to a file for this to work .