Update FollowRequest model

This commit is contained in:
Daniel Supernault 2018-12-31 23:25:00 -07:00
parent 35e0140e87
commit 0dc8d70639
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 10 additions and 0 deletions

View File

@ -17,4 +17,14 @@ class FollowRequest extends Model
{
return $this->belongsTo(Profile::class, 'following_id', 'id');
}
public function actor()
{
return $this->belongsTo(Profile::class, 'follower_id', 'id');
}
public function target()
{
return $this->belongsTo(Profile::class, 'following_id', 'id');
}
}