class
Illuminate
/
Http
/
Testing
/
MimeType
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
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 ( $mimeType ) : string|null
Search for the extension of a given MIME type.
Parameters
- $mimeType string