1
0
Fork 0

Update FollowRequest model

This commit is contained in:
Daniel Supernault 2018-09-02 22:00:54 -06:00
parent 38d6d58dc8
commit 13894415ee
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,8 @@ use Illuminate\Database\Eloquent\Model;
class FollowRequest extends Model
{
protected $fillable = ['follower_id', 'following_id'];
public function follower()
{
return $this->belongsTo(Profile::class, 'follower_id', 'id');