$this->faker->unique()->isbn10, 'uuid' => Uuid::uuid4()->toString(), 'username' => $this->faker->unique()->userName, 'email' => $this->faker->unique()->safeEmail, 'password' => $password ?: $password = bcrypt('password'), 'language' => 'en', 'root_admin' => false, 'use_totp' => false, 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ]; } /** * Indicate that the user is an admin. */ public function admin(): Factory { return $this->state(function (array $attributes) { return [ 'root_admin' => true, ]; }); } }