fix logic and tests, update docker CI file

This commit is contained in:
root
2026-03-09 15:58:44 -04:00
parent 1cb3573d4b
commit 79e44fe037
188 changed files with 1776 additions and 524 deletions
+13 -6
View File
@@ -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);
}
}