Update Media model

This commit is contained in:
Daniel Supernault 2018-10-16 12:31:29 -06:00
parent 851c441319
commit 4688e6c605
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 5 additions and 0 deletions

View File

@ -55,4 +55,9 @@ class Media extends Model
}
return $verb;
}
public function getMetadata()
{
return json_decode($this->metadata, true, 3);
}
}