protected function setDatabaseFactoryNamespaces()
    {
        $files = Finder::create()
                            ->in(database_path('factories'))
                            ->contains($this->currentRoot)
                            ->name('*.php');

        foreach ($files as $file) {
            $this->replaceIn(
                $file->getRealPath(),
                $this->currentRoot, $this->argument('name')
            );
        }
    }
protected function setDatabaseFactoryNamespaces()
    {
        $files = Finder::create()
                            ->in(database_path('factories'))
                            ->contains($this->currentRoot)
                            ->name('*.php');

        foreach ($files as $file) {
            $this->replaceIn(
                $file->getRealPath(),
                $this->currentRoot, $this->argument('name')
            );
        }
    }
protected function setDatabaseFactoryNamespaces ( ) { $ files = Finder :: create ( ) -> in ( database_path ( 'factories' ) ) -> contains ( $ this -> currentRoot ) -> name ( '*.php' ) ; foreach ( $ files as $ file ) { $ this -> replaceIn ( $ file -> getRealPath ( ) , $ this -> currentRoot , $ this -> argument ( 'name' ) ) ; } }
Set the namespace in database factory files.

@return void
Set the namespace in database factory files .