Explorar o código

Update Profile model, add reported relationship

Daniel Supernault %!s(int64=5) %!d(string=hai) anos
pai
achega
a34f38633c
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      app/Profile.php

+ 6 - 0
app/Profile.php

@@ -308,4 +308,10 @@ class Profile extends Model
     {
         return $this->hasMany(Story::class);
     }
+
+
+    public function reported()
+    {
+        return $this->hasMany(Report::class, 'object_id');
+    }
 }