fix SocieteFactory colors attribute

This commit is contained in:
Jérémy Munsch 2021-06-17 16:11:27 +02:00
parent abdda1fbc4
commit 23c74a2b16

View file

@ -42,7 +42,7 @@ class SocieteFactory extends Factory
'phone' => $this->faker->unique()->phoneNumber(),
'address' => $this->faker->unique()->address(),
'logo' => Societe::saveLogo($logo, $companyName),
'colors' => $colors->all()
'colors' => \json_encode($colors->all())
];
}
}