*/ protected $fillable = [ 'userId', 'ipAddress' ]; public function user() { return $this->belongsTo(User::class, 'userId'); } }