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

        foreach ($files as $file) {
            $content = $this->filesystem->get($file);
            $this->filesystem->create($file, str_replace($oldNamespace . '\Controllers', $newNamespace . '\Controllers', $content));
        }
    }
private function setBootstrapNamespace($oldNamespace, $newNamespace)
    {
        $files = $this->filesystem->files(base_path() . '/bootstrap');

        foreach ($files as $file) {
            $content = $this->filesystem->get($file);
            $this->filesystem->create($file, str_replace($oldNamespace . '\Controllers', $newNamespace . '\Controllers', $content));
        }
    }
private function setBootstrapNamespace ( $ oldNamespace , $ newNamespace ) { $ files = $ this -> filesystem -> files ( base_path ( ) . '/bootstrap' ) ; foreach ( $ files as $ file ) { $ content = $ this -> filesystem -> get ( $ file ) ; $ this -> filesystem -> create ( $ file , str_replace ( $ oldNamespace . '\Controllers' , $ newNamespace . '\Controllers' , $ content ) ) ; } }
To set bootstrap file namespace

@param $oldNamespace
@param $newNamespace

@return array
To set bootstrap file namespace