From b7659786b61735f12496935a354d32dac3d81998 Mon Sep 17 00:00:00 2001 From: Kei Date: Thu, 20 Jun 2024 00:41:41 +0700 Subject: [PATCH] Replace `username()` with `userName()` ensure consistency with FakerPHP --- database/factories/UserFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php index aeee52596..9c93c57b0 100644 --- a/database/factories/UserFactory.php +++ b/database/factories/UserFactory.php @@ -35,7 +35,7 @@ class UserFactory extends Factory public function definition(): array { return [ - 'name' => fake()->username(), + 'name' => fake()->userName(), 'email' => fake()->unique()->safeEmail(), 'email_verified_at' => now(), 'password' => static::$password ??= Hash::make('password'),