hasOne(Wechat::class, 'user_id', 'user_id'); } public function user() { return $this->belongsTo(User::class); } }