diff --git a/app/Models/Tenants/Tenant.php b/app/Models/Tenants/Tenant.php index 7f339674..3666906f 100644 --- a/app/Models/Tenants/Tenant.php +++ b/app/Models/Tenants/Tenant.php @@ -60,9 +60,6 @@ class Tenant extends Model 'options', 'tenant_st_code', 'billing_tp_code', - 'tenant_type', - 'demo_expires_at', - 'demo_source_partner_id', ]; protected $guarded = [ @@ -384,14 +381,15 @@ public function getDemoLimits(): array /** * 데모 → 정식 테넌트로 전환 + * fillable 밖의 컬럼이므로 forceFill 사용 */ public function convertToProduction(): void { - $this->update([ + $this->forceFill([ 'tenant_type' => self::TYPE_STD, 'demo_expires_at' => null, 'demo_source_partner_id' => null, - ]); + ])->save(); // options에서 데모 관련 키 제거 $options = $this->options ?? [];