public function exportDotenv(array $credentials)
    {
        // Build dotenv file
        $dotenv = '';
        foreach ($credentials as $credential => $value) {
            $value = str_replace('"', '\\"', $value);
            $dotenv .= sprintf('%s="%s"', $credential, $value);
            $dotenv .= PHP_EOL;
        }

        // Write to disk
        $this->files->append($this->paths->getDotenvPath(), $dotenv);
    }