class Illuminate / Http / Testing / MimeType
You are viewing an older version of the documentation. For the latest, please visit master documentation.

MimeType

Properties

private static

$mime Symfony\...\MimeTypes|null

The mime types instance.

Default: null

Methods

public static

getMimeTypes ( ) : Symfony\...\MimeTypesInterface

Get the mime types instance.

public static

from ( $filename ) : string

Get the MIME type for a file based on the file's extension.

Parameters

  • $filename string
public static

get ( $extension ) : string

Get the MIME type for a given extension or return all mimes.

Parameters

  • $extension string
public static

Search for the extension of a given MIME type.

Parameters

  • $mimeType string