Explorar o código

Update Profile model, add collections relation

Daniel Supernault %!s(int64=6) %!d(string=hai) anos
pai
achega
64926762f2
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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);
+    }
 }