Skip to content

Commit cd61ab0

Browse files
verify email queue
1 parent 856e26b commit cd61ab0

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

app/Models/User.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,14 @@ public function getFilamentAvatarUrl(): ?string
9393
{
9494
return $this->avatar ? diskPublic()->url($this->avatar) : 'https://gravatar.com/avatar/'.hash('sha256', $this->email);
9595
}
96+
97+
/**
98+
* Send the email verification notification.
99+
*
100+
* @return void
101+
*/
102+
public function sendEmailVerificationNotification()
103+
{
104+
$this->notify(new \App\Notifications\VerifyEmail);
105+
}
96106
}

app/Notifications/VerifyEmail.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
namespace App\Notifications;
4+
5+
use Illuminate\Auth\Notifications\VerifyEmail as NotificationsVerifyEmail;
6+
use Illuminate\Bus\Queueable;
7+
use Illuminate\Contracts\Queue\ShouldQueue;
8+
9+
class VerifyEmail extends NotificationsVerifyEmail implements ShouldQueue
10+
{
11+
use Queueable;
12+
}

0 commit comments

Comments
 (0)