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 PasswordRest notification on successfull reset
- Loading branch information
1 parent
dbb9468
commit 7b42b1f
Showing
2 changed files
with
41 additions
and
6 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/PasswordReset.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 PasswordReset extends Notification implements ShouldQueue | ||
{ | ||
use Queueable; | ||
|
||
public function via($notifiable): array | ||
{ | ||
return ['mail']; | ||
} | ||
|
||
public function toMail(UserModel $notifiable): MailMessage | ||
{ | ||
return (new MailMessage()) | ||
->subject('Password Reset') | ||
->line('Your password has been reset successfully.'); | ||
} | ||
} |