hasOne(Account::class, 'id', 'reg_account_id'); } /** * 模型关联:绑定的邀请人 * * @return HasOne */ public function inviter(): HasOne { return $this->hasOne(Account::class, 'id', 'inviter_account_id'); } }