freescout/freescout-dist/app/Mail/PasswordChanged.php

38 lines
679 B
PHP
Raw Permalink Normal View History

2023-12-22 19:40:32 +00:00
<?php
namespace App\Mail;
use Illuminate\Mail\Mailable;
class PasswordChanged extends Mailable
{
/**
* User to whom email is sent.
*/
public $user;
/**
* Create a new message instance.
*/
public function __construct($user)
{
$this->user = $user;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
\MailHelper::prepareMailable($this);
$message = $this->subject(__('Password Changed'))
->view('emails/user/password_changed')
->text('emails/user/password_changed_text');
return $message;
}
}