5use Illuminate\Database\Eloquent\Factories\Factory;
6use Illuminate\Support\Facades\Hash;
7use Illuminate\Support\Str;
27 'name' => fake()->name(),
28 'email' => fake()->unique()->safeEmail(),
29 'email_verified_at' => now(),
30 'password' => static::$password ??= Hash::make(
'password'),
31 'remember_token' => Str::random(10),
40 return $this->state(fn (array $attributes) => [
41 'email_verified_at' =>
null,
\Database\Eloquent\Factories\Factory<\App\Models\User>
static string $password
The current password being used by the factory.
definition()
Define the model's default state.
unverified()
Indicate that the model's email address should be unverified.