From ae781a88530357580e00507b1f5dcc839cc1be36 Mon Sep 17 00:00:00 2001 From: Mohamed Ashraf Date: Tue, 23 Apr 2024 16:52:40 +0400 Subject: [PATCH] Refactor --- database/factories/ContributorFactory.php | 4 ++-- database/factories/InviteFactory.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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()), ]; }