public function write($file = "")
    {
        $envString = $this->generateEnvString($this->lines);
        file_put_contents($file ? $file : $this->filePath, $envString);
    }
public function write($file = "")
    {
        $envString = $this->generateEnvString($this->lines);
        file_put_contents($file ? $file : $this->filePath, $envString);
    }
public function write ( $ file = "" ) { $ envString = $ this -> generateEnvString ( $ this -> lines ) ; file_put_contents ( $ file ? $ file : $ this -> filePath , $ envString ) ; }
Writes the configuration data back to the ENV file.

@param string $file If not empty will be used as an
ENV file path to be written.
Writes the configuration data back to the ENV file .