Преглед изворни кода

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);
+    }
 }