wesmiler 2 yıl önce
ebeveyn
işleme
ed5b2bcc9f
1 değiştirilmiş dosya ile 0 ekleme ve 19 silme
  1. 0 19
      app/Models/LiveChatModel.php

+ 0 - 19
app/Models/LiveChatModel.php

@@ -22,23 +22,4 @@ class LiveChatModel extends BaseModel
     // 设置数据表
     protected $table = 'live_chat';
 
-    /**
-     * 发送用户
-     * @return \Illuminate\Database\Eloquent\Relations\HasOne
-     */
-    public function from()
-    {
-        return $this->hasOne(MemberModel::class, 'id','from_user_id')
-            ->select(['id','nickname','avatar','status']);
-    }
-
-    /**
-     * 接收用户
-     * @return \Illuminate\Database\Eloquent\Relations\HasOne
-     */
-    public function to()
-    {
-        return $this->hasOne(MemberModel::class, 'id','to_user_id')
-            ->select(['id','nickname','avatar','status']);
-    }
 }