From 23c74a2b166ba0713f486d731a48e2e580b76154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Thu, 17 Jun 2021 16:11:27 +0200 Subject: [PATCH] fix SocieteFactory colors attribute --- database/factories/SocieteFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/factories/SocieteFactory.php b/database/factories/SocieteFactory.php index 48ccfea..63ce23e 100644 --- a/database/factories/SocieteFactory.php +++ b/database/factories/SocieteFactory.php @@ -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()) ]; } }