Hello there! I'm trying to create a Brand model for each CompanyBrand created, but this block of code create duplicated Brand models for many CompanyBrand models.
Could anyone take a look at it see if I'm doing something wrong please, and thank you in advance!
Company::factory()
->has(CompanyBrand::factory()->for(Brand::factory()->has(BrandActivity::factory(), 'activity')), 'brands')
->count(5)
->create();