Laravel 3 had a File::mime() method which made it easy to get a file\'s mime type from its extension:
$extension = File::extension($path); $
public function mimeType($path) { return finfo_file(finfo_open(FILEINFO_MIME_TYPE), $path); }
Ref: https://github.com/illuminate/filesystem/blob/master/Filesystem.php#L194