forked from apiato/apiato
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send EmailVerified email notification
- Loading branch information
1 parent
3ddd868
commit a9b7f77
Showing
2 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
app/Containers/AppSection/Authentication/Notifications/EmailVerified.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace App\Containers\AppSection\Authentication\Notifications; | ||
|
||
use App\Ship\Parents\Models\UserModel; | ||
use App\Ship\Parents\Notifications\Notification; | ||
use Illuminate\Bus\Queueable; | ||
use Illuminate\Contracts\Queue\ShouldQueue; | ||
use Illuminate\Notifications\Messages\MailMessage; | ||
|
||
class EmailVerified extends Notification implements ShouldQueue | ||
{ | ||
use Queueable; | ||
|
||
public function via($notifiable): array | ||
{ | ||
return ['mail']; | ||
} | ||
|
||
public function toMail(UserModel $notifiable): MailMessage | ||
{ | ||
return (new MailMessage()) | ||
->subject('Email Verified') | ||
->line('Your email has been verified.'); | ||
} | ||
} |