Browse Source

Update Profile model, add circles relation

Daniel Supernault 6 năm trước cách đây
mục cha
commit
dd42ad7558
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      app/Profile.php

+ 5 - 0
app/Profile.php

@@ -274,4 +274,9 @@ class Profile extends Model
             ->unique()
             ->toArray();
     }
+
+    public function circles()
+    {
+        return $this->hasMany(Circle::class);
+    }
 }