'decimal:4', 'unit_price' => 'decimal:4', 'subtotal' => 'decimal:2', ]; public function shippingOrder() { return $this->belongsTo(ShippingOrder::class); } // 注意:在模組化架構下,跨模組關聯應謹慎使用或是直接在 Controller 水和 (Hydration) // 但為了開發便利,暫時保留對 Product 的關聯(如果 Product 在不同模組,可能無法直接 lazy load) }