src/Console/Commands/AbstractGeneratorCommand.php
protected function replaceApplicationNamespace(&$stub)
    {
        $namespace = rtrim($this->laravel->getNamespace(), '\\');
        $stub = str_replace('DummyApplicationNamespace', $namespace, $stub);

        return $this;
    }
protected function replaceApplicationNamespace(&$stub)
    {
        $namespace = rtrim($this->laravel->getNamespace(), '\\');
        $stub = str_replace('DummyApplicationNamespace', $namespace, $stub);

        return $this;
    }
Replace the value of the application namespace.

@param $stub
@return $this