浏览代码

Update Profile model, add collections relation

Daniel Supernault 6 年之前
父节点
当前提交
64926762f2
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      app/Profile.php

+ 5 - 0
app/Profile.php

@@ -291,4 +291,9 @@ class Profile extends Model
     {
         return $this->hasMany(HashtagFollow::class);
     }
+
+    public function collections()
+    {
+        return $this->hasMany(Collection::class);
+    }
 }