From a34f38633c597b33045b07dbee3d01bb5906e60c Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 11 Feb 2020 21:41:16 -0700 Subject: [PATCH] Update Profile model, add reported relationship --- app/Profile.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Profile.php b/app/Profile.php index b386ffda6..7e6edcaea 100644 --- a/app/Profile.php +++ b/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'); + } }