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

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