W3cubDocs

/Laravel 5.4

MimeType

class MimeType (View source)

Methods

static string from(string $filename)

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

Details

static string from(string $filename)

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

Parameters

string $filename

Return Value

string

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/Http/Testing/MimeType.html