Devise\Support\Config\EnvironmentFileManager::save PHP Method

save() public method

This will save the settings to the env file
public save ( array $settings ) : array
$settings array
return array
    public function save(array $settings)
    {
        $contents = "";
        $newline = "";
        foreach ($settings as $key => $value) {
            $contents .= is_numeric($key) ? $newline . $value : $newline . "{$key}={$value}";
            $newline = PHP_EOL;
        }
        file_put_contents($this->envFile, $contents);
        return $settings;
    }