From 93d56a8f6823c1cea7510bb77a98fbf3fa3f0622 Mon Sep 17 00:00:00 2001 From: "kreaweb.be" Date: Sat, 25 May 2024 09:00:42 +0200 Subject: [PATCH] Improve UserFactory --- database/factories/UserFactory.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php index 14d3eb5ac..5953c6080 100644 --- a/database/factories/UserFactory.php +++ b/database/factories/UserFactory.php @@ -39,7 +39,7 @@ public function definition(): array 'current_team_id' => null, 'language' => 'en', 'timezone' => 'UTC', - 'is_developer' => 0, + 'is_developer' => false, ]; } @@ -66,6 +66,7 @@ public function withPersonalTeam(?callable $callback = null): static Team::factory() ->state(fn (array $attributes, User $user) => [ 'name' => 'Team ' . $user->name, + 'description' => 'Personal Team', 'user_id' => $user->id, 'personal_team' => true, ])