hasOne(InteractLiveGift::class, 'id', 'gift_id'); } public function otherUser() { return $this->hasOne(User::class, 'id', 'send_user_id'); } public function gifts() { return $this->hasMany(InteractLiveGiftLog::class, 'send_user_id', 'send_user_id')->with('gift'); } public function channelLog() { return $this->hasOne(GiftLogChannel::class, 'log_id', 'id'); } }