fix logic and tests, update docker CI file
This commit is contained in:
@@ -24,11 +24,20 @@ class UserFactory extends Factory
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'name' => fake()->name(),
|
||||
'school_id' => fake()->numberBetween(1, 5),
|
||||
'firstname' => fake()->firstName(),
|
||||
'lastname' => fake()->lastName(),
|
||||
'gender' => fake()->randomElement(['Male', 'Female']),
|
||||
'cellphone' => fake()->numerify('##########'),
|
||||
'email' => fake()->unique()->safeEmail(),
|
||||
'email_verified_at' => now(),
|
||||
'address_street' => fake()->streetAddress(),
|
||||
'city' => fake()->city(),
|
||||
'state' => fake()->stateAbbr(),
|
||||
'zip' => fake()->postcode(),
|
||||
'accept_school_policy' => 1,
|
||||
'semester' => 'Fall',
|
||||
'school_year' => '2025-2026',
|
||||
'password' => static::$password ??= Hash::make('password'),
|
||||
'remember_token' => Str::random(10),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -37,8 +46,6 @@ class UserFactory extends Factory
|
||||
*/
|
||||
public function unverified(): static
|
||||
{
|
||||
return $this->state(fn (array $attributes) => [
|
||||
'email_verified_at' => null,
|
||||
]);
|
||||
return $this->state(fn (array $attributes) => $attributes);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user