Explorar el Código

Update Profile model, add collections relation

Daniel Supernault hace 6 años
padre
commit
64926762f2
Se han modificado 1 ficheros con 5 adiciones y 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);
+    }
 }