Skip to content

Commit

Permalink
fix: faker unique email
Browse files Browse the repository at this point in the history
  • Loading branch information
abourtnik committed Dec 22, 2023
1 parent 7f27349 commit a552604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Console/Commands/SyncComments.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ private function importUser (string $youtubeChannelId) : User {

return User::create([
'username' => $channel['title'],
'email' => fake()->unique()->safeEmail(),
'email' => Str::lower($channel['title']) . '@youtube.com',
'password' => Str::random(),
'email_verified_at' => Carbon::create($channel['publishedAt'])->addSeconds(rand(10, 300)),
'avatar' => $avatarName ?? null,
Expand Down

0 comments on commit a552604

Please sign in to comment.