Answer the question
In order to leave comments, you need to log in
How to do Seeding with predefined data dependent on each other?
I have Model Product
Also I have Model Feature and Model FeatureValue.
I want to generate
Product->FeatureValue(Many values)-Feature
EloquentProduct::factory->has(
EloquentCharacteristicValue::factory()
->count(3)
->for(
EloquentCharacteristic::factory(),
'characteristic'
)
)->create();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question