Files
ProxyPanel/app/Notifications/PasswordReset.php
2021-01-18 02:24:41 -05:00

42 lines
1022 B
PHP

<?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
class PasswordReset extends Notification
{
use Queueable;
private $url;
public function __construct($url)
{
$this->url = $url;
}
public function via($notifiable)
{
return sysConfig('password_reset_notification');
}
public function toMail($notifiable)
{
return (new MailMessage)
->subject(__('Reset Password Notification'))
->line(__('Please click the button below to reset your password.'))
->action(__('Reset Password'), $this->url)
->line(__('You are receiving this email because we received a password reset request for your account.'))
->line(__('If you did not request a password reset, no further action is required.'));
}
public function toArray($notifiable)
{
return [
//
];
}
}