src/Anonym/Http/Redirect.php
public function withError($message)
    {
        if (is_array($message)) {
            $this->errorBag->setErrors($message);
        } else {
            $this->errorBag->add($message);
        }

        return $this;
    }
public function withError($message)
    {
        if (is_array($message)) {
            $this->errorBag->setErrors($message);
        } else {
            $this->errorBag->add($message);
        }

        return $this;
    }
public function withError ( $ message ) { if ( is_array ( $ message ) ) { $ this -> errorBag -> setErrors ( $ message ) ; } else { $ this -> errorBag -> add ( $ message ) ; } return $ this ; }
add or set error messages

@param array|string $message
@return $this
add or set error messages