f::base64($file)

Returns the file content as base64 encoded string

  • $file (string)
    The path for the file
  • return (string)