1
0
Fork 0

Update Media model

This commit is contained in:
Daniel Supernault 2023-07-16 04:24:58 -06:00
parent ff2c16fe74
commit 7a431af93a
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 6 additions and 3 deletions

View File

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