芝麻web文件管理V1.00
编辑当前文件:/home/forge/stage.herta-bht.smartcon-survey.com/database/factories/UserFactory.php
*/ class UserFactory extends Factory { /** * Define the model's default state. * * @return array
*/ public function definition(): array { return [ 'name' => $this->faker->name, 'email' => $this->faker->unique()->safeEmail, 'email_verified_at' => now(), 'password' => Hash::make('password'), 'is_admin' => 0, 'remember_token' => null, ]; } public function unverified(): self { return $this->state(function (array $attributes) { return [ 'email_verified_at' => null, ]; }); } }