Browse Source

Update Media model

Daniel Supernault 6 years ago
parent
commit
4688e6c605
1 changed files with 5 additions and 0 deletions
  1. 5 0
      app/Media.php

+ 5 - 0
app/Media.php

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