public function saveToFile($content, $filename) { $this->clearCache(); $configFile = $this->getFileByEnvironment($filename); $this->files->put($configFile, '<?php return ' . $this->prettyVarExport($content) . ';'); return $content; }