diff --git a/database/factories/ContributorFactory.php b/database/factories/ContributorFactory.php index aa90d78..d7fe5f9 100644 --- a/database/factories/ContributorFactory.php +++ b/database/factories/ContributorFactory.php @@ -12,8 +12,8 @@ class ContributorFactory extends Factory public function definition(): array { return [ - 'name' => $this->faker->name, - 'email' => $this->faker->unique()->email, + 'name' => $this->faker->name(), + 'email' => $this->faker->unique()->safeEmail(), 'role' => $this->faker->randomElement(['admin', 'translator']), 'password' => bcrypt('password'), 'remember_token' => null, diff --git a/database/factories/InviteFactory.php b/database/factories/InviteFactory.php index e4a2c35..0220781 100644 --- a/database/factories/InviteFactory.php +++ b/database/factories/InviteFactory.php @@ -13,8 +13,8 @@ class InviteFactory extends Factory public function definition(): array { return [ - 'email' => $this->faker->email(), 'token' => $this->faker->uuid(), + 'email' => $this->faker->unique()->safeEmail(), 'role' => $this->faker->randomElement(RoleEnum::cases()), ]; }