Barryvdh\LaravelIdeHelper\Generator::error PHP Method

error() protected method

Write a string as error output.
protected error ( string $string ) : void
$string string
return void
    protected function error($string)
    {
        if ($this->output) {
            $this->output->writeln("<error>{$string}</error>");
        } else {
            echo $string . "\r\n";
        }
    }