src/Way/Generators/Commands/PublishTemplatesCommand.php
protected function pointConfigFileTemplatesToNewLocation()
    {
        $configPath = app_path('config/packages/way/generators/config.php');
        $updated = str_replace('vendor/way/generators/src/Way/Generators/templates', $this->option('path'), File::get($configPath));

        File::put($configPath, $updated);
    }
protected function pointConfigFileTemplatesToNewLocation()
    {
        $configPath = app_path('config/packages/way/generators/config.php');
        $updated = str_replace('vendor/way/generators/src/Way/Generators/templates', $this->option('path'), File::get($configPath));

        File::put($configPath, $updated);
    }
protected function pointConfigFileTemplatesToNewLocation ( ) { $ configPath = app_path ( 'config/packages/way/generators/config.php' ) ; $ updated = str_replace ( 'vendor/way/generators/src/Way/Generators/templates' , $ this -> option ( 'path' ) , File :: get ( $ configPath ) ) ; File :: put ( $ configPath , $ updated ) ; }
Update config file to point to the new templates directory
Update config file to point to the new templates directory