Update Profile model, add reported relationship

pull/2005/head
Daniel Supernault 5 years ago
parent e33fb88f71
commit a34f38633c
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

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

Loading…
Cancel
Save