Skip to content

Commit

Permalink
Improve UserFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
kreaweb.be committed May 25, 2024
1 parent c476f6f commit 93d56a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion database/factories/UserFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function definition(): array
'current_team_id' => null,
'language' => 'en',
'timezone' => 'UTC',
'is_developer' => 0,
'is_developer' => false,
];
}

Expand All @@ -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,
])
Expand Down

0 comments on commit 93d56a8

Please sign in to comment.