Laravel – How to change default values of nested entities created with factories?
My data model looks like this: An Order contains between 1 and N Products, a Product has a single Category. I have 3 Factories, one for each entity: OrderFactory, ProductFactory, CategoryFactory. In them, I setup default data: namespace DatabaseFactories; use…