protected function prepareRevisedEnv($envFile)
    {
        $pattern = '/^' . $this->argument('key') . '=(.*?)(\n??)$/mi';
        $replacement = $this->getKey() . '=' . $this->getValue();

        return preg_replace($pattern, $replacement, $envFile);
    }