code: public function toFile($filename, array $config, $header = null)
      {
          $ini = $this->toString($config, $header);
          return File::put($filename, $ini);
      }
docs: @param string $filename
  @param array  $config
  @param string $header
  
  @return int