src/Console/ExportCommand.php
public function generateConfigFile($path, $noCache = false)
    {
        $config = ConfigCachingService::getConfigJson($noCache);
        if ($config === '{}') {
            $this->line('No config specified. Config not written to file.');
            return;
        }

        $contents = 'Config.addConfig(' . $config . ');';

        File::put($path, $contents);

        $this->line("Generated $path");
    }
public function generateConfigFile($path, $noCache = false)
    {
        $config = ConfigCachingService::getConfigJson($noCache);
        if ($config === '{}') {
            $this->line('No config specified. Config not written to file.');
            return;
        }

        $contents = 'Config.addConfig(' . $config . ');';

        File::put($path, $contents);

        $this->line("Generated $path");
    }
public function generateConfigFile ( $ path , $ noCache = false ) { $ config = ConfigCachingService :: getConfigJson ( $ noCache ) ; if ( $ config === '{}' ) { $ this -> line ( 'No config specified. Config not written to file.' ) ; return ; } $ contents = 'Config.addConfig(' . $ config . ');' ; File :: put ( $ path , $ contents ) ; $ this -> line ( "Generated $path" ) ; }
Generate the config file.

@param string $path
@param bool $noCache
Generate the config file .