protected function addValueToEnv($key, $value)
    {
        $env_path = base_path('.env');
        $sed_command = "/bin/sed -i '/^$key=/d' " . $env_path;
        passthru($sed_command);
        File::append($env_path, "\n$key=$value\n");
    }
protected function addValueToEnv($key, $value)
    {
        $env_path = base_path('.env');
        $sed_command = "/bin/sed -i '/^$key=/d' " . $env_path;
        passthru($sed_command);
        File::append($env_path, "\n$key=$value\n");
    }
protected function addValueToEnv ( $ key , $ value ) { $ env_path = base_path ( '.env' ) ; $ sed_command = "/bin/sed -i '/^$key=/d' " . $ env_path ; passthru ( $ sed_command ) ; File :: append ( $ env_path , "\n$key=$value\n" ) ; }
Add value to env.

@param $key
@param $value
Add value to env .