code: protected function replaceNamespace($path)
      {
          $search = [
              'namespace ' . $this->currentRoot . ';',
              $this->currentRoot . '\\'
          ];
          
          $replace = [
              'namespace ' . $this->argument('name') . ';',
              $this->argument('name') . '\\'
          ];
          
          $this->replaceIn($path, $search, $replace);
      }
docs: Replace the App namespace at the given path.
  
  @param string $path
  @return void