src/Attachment/Models/Attachment.php
public function getMimeType(): string
    {
        $mimes = new MimeTypes();

        $type = $mimes->getMimeType($this->getAttribute('extension'));

        return $type ?? 'unknown';
    }
public function getMimeType(): string
    {
        $mimes = new MimeTypes();

        $type = $mimes->getMimeType($this->getAttribute('extension'));

        return $type ?? 'unknown';
    }
public function getMimeType ( ) : string { $ mimes = new MimeTypes ( ) ; $ type = $ mimes -> getMimeType ( $ this -> getAttribute ( 'extension' ) ) ; return $ type ?? 'unknown' ; }
Get MIME type for file.

@return string
Get MIME type for file .