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 23, 2023
1 parent e87b6e7 commit 7f74200
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' => Str::slug($channel['title']) . '@youtube.com',
'email' => Str::slug($channel['title']) .'-'. Carbon::now()->timestamp .'@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 7f74200

Please sign in to comment.