Small or Large, because those are stored in the AttributeValue model, which ProductSku has a ManyToMany relationship with.sku attribute as the titleAttribute for the option labels, as it is an attribute on the ProductSku model. But I want to use ProductSku::attributeValues->value as the titleAttribute instead. Is there a way to achieve this by using eloquent relationships? Or am I forced to store the attribute values on the product_skus table directly to make this work?
product_sku_id`.