Update Media model

pull/4544/head
Daniel Supernault 2 years ago
parent ff2c16fe74
commit 7a431af93a
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -78,6 +78,9 @@ class Media extends Model
public function mimeType() public function mimeType()
{ {
if(!$this->mime) {
return;
}
return explode('/', $this->mime)[0]; return explode('/', $this->mime)[0];
} }

Loading…
Cancel
Save