getMimeTypes($extension)) ?? 'application/octet-stream'; } /** * Search for the extension of a given MIME type. * * @param string $mimeType * @return string|null */ public static function search($mimeType) { return Arr::first(self::getMimeTypes()->getExtensions($mimeType)); } }