public function with($key, $value = null)
    {
        if (is_array($key)) {
            $this->viewData = array_merge($this->viewData, $key);
        } else {
            $this->viewData[$key] = $value;
        }

        return $this;
    }
public function with($key, $value = null)
    {
        if (is_array($key)) {
            $this->viewData = array_merge($this->viewData, $key);
        } else {
            $this->viewData[$key] = $value;
        }

        return $this;
    }
public function with ( $ key , $ value = null ) { if ( is_array ( $ key ) ) { $ this -> viewData = array_merge ( $ this -> viewData , $ key ) ; } else { $ this -> viewData [ $ key ] = $ value ; } return $ this ; }
Set the view data for the message.

@param  string|array  $key
@param  mixed   $value
@return $this
Set the view data for the message .