We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43156e8 commit 3f2bd78Copy full SHA for 3f2bd78
database/Factories/UserFactory.php
@@ -27,7 +27,7 @@ public function definition(): array
27
return [
28
'external_id' => null,
29
'uuid' => Uuid::uuid4()->toString(),
30
- 'username' => $this->faker->unique()->userName,
+ 'username' => $this->faker->userName . '_' . Str::random(10),
31
'email' => Str::random(32) . '@example.com',
32
'name_first' => $this->faker->firstName,
33
'name_last' => $this->faker->lastName,
@@ -45,10 +45,6 @@ public function definition(): array
45
*/
46
public function admin(): Factory
47
{
48
- return $this->state(function (array $attributes) {
49
- return [
50
- 'root_admin' => true,
51
- ];
52
- });
+ return $this->state(['root_admin' => true]);
53
}
54
0 commit comments