I have two models. A Product and a Variant. Both models have an attribute of short_description.
A Product has many Variants
A Variant belongs to a Product
On my variant resource, I have the following field
Textarea::make('Short Description', 'short_description')->nullable(),
Is there a way when creating a Variant using the Variant resource, to default the short description to use the product description? This will only be for creation as the variant short description could've been overwritten and at that point I would want to use the variant description over the product.
I've looked at ->withMeta()
but can't see how I can check whether I am creating and whether the variant description already exists.