str::download($string, $name = null)

Forces a download of the string as text file

  • $string (string)
  • $name (string)
    Optional name for the downloaded file