feat(product): 恢復並實作商品起停用狀態功能,包含表單開關與列表顯示

This commit is contained in:
2026-02-05 16:15:06 +08:00
parent 196fec3120
commit 24aed44cd3
5 changed files with 35 additions and 4 deletions

View File

@@ -31,10 +31,12 @@ class Product extends Model
'price',
'member_price',
'wholesale_price',
'is_active',
];
protected $casts = [
'conversion_rate' => 'decimal:4',
'is_active' => 'boolean',
];
/**