Skip to content

Commit

Permalink
Update UserFactory.php
Browse files Browse the repository at this point in the history
  • Loading branch information
fe2-Nyxar authored Jun 6, 2024
1 parent 731b425 commit af8da59
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions database/factories/UserFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@ class UserFactory extends Factory
public function definition(): array
{
return [
'onee_id' => fake()->unique()->lexify(),
'name' => fake()->name(),
'email' => fake()->unique()->safeEmail(),
'email_verified_at' => now(),
'direction' => fake()->randomElement([ "DPF", "DPM", "DPT"]),
'isboss'=>fake()->boolean(),
'password' => static::$password ??= Hash::make('password'),
'remember_token' => Str::random(10),
];
Expand Down

0 comments on commit af8da59

Please sign in to comment.