private function setConfigNamespace($oldNamespace, $newNamespace)
    {
        $files = $this->filesystem->files(base_path() . '/config');

        foreach ($files as $file) {
            $content = $this->filesystem->get($file);
            $this->filesystem->create($file, preg_replace("/\\b" . $oldNamespace . "\\b/", $newNamespace, $content));
        }
    }
private function setConfigNamespace($oldNamespace, $newNamespace)
    {
        $files = $this->filesystem->files(base_path() . '/config');

        foreach ($files as $file) {
            $content = $this->filesystem->get($file);
            $this->filesystem->create($file, preg_replace("/\\b" . $oldNamespace . "\\b/", $newNamespace, $content));
        }
    }
private function setConfigNamespace ( $ oldNamespace , $ newNamespace ) { $ files = $ this -> filesystem -> files ( base_path ( ) . '/config' ) ; foreach ( $ files as $ file ) { $ content = $ this -> filesystem -> get ( $ file ) ; $ this -> filesystem -> create ( $ file , preg_replace ( "/\\b" . $ oldNamespace . "\\b/" , $ newNamespace , $ content ) ) ; } }
To set config directory files namespace

@param $oldNamespace
@param $newNamespace

@return array
To set config directory files namespace