code: public function getEnvValue(array $expectedEnv, array $actualEnv)
      {
          $actualValue = '';
          $isStarted = false;
          foreach ($expectedEnv as $key => $defaultValue) {
              if (array_key_exists($key, $actualEnv)) {
                  if ($this->option('force')) {
                      $defaultValue = $actualEnv[$key];
                  } else {
                      $actualValue .= sprintf("%s=%s\n", $key, $actualEnv[$key]);
                      continue;
                  }
              }
  
              if (!$isStarted) {
                  $isStarted = true;
                  if ($this->option('force')) {
                      $this->comment('Update all parameters. Please provide them.');
                  } else {
                      $this->comment('Some parameters are missing. Please provide them.');
                  }
              }
  
              $value = $this->ask($key, $defaultValue);
              // set the prompt value to env
              $actualValue .= sprintf("%s=%s\n", $key, $value);
          }
          return $actualValue;
      }
docs: get the env value if not exists
  @param  array  $expectedEnv
  @param  array  $actualEnv
  @return string