Update FollowRequest model

pull/735/head
Daniel Supernault 8 years ago
parent 35e0140e87
commit 0dc8d70639
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -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');
}
}

Loading…
Cancel
Save