Make email messages Markdown.

This commit is contained in:
James Cole
2022-03-29 12:45:48 +02:00
parent 9c19a08b17
commit 09bd0b572a
71 changed files with 747 additions and 555 deletions

View File

@@ -37,21 +37,16 @@ class RequestedNewPassword extends Mailable
{
use Queueable, SerializesModels;
/** @var string IP address of user */
public $ipAddress;
/** @var string URI of password change link */
public $url;
public string $url;
/**
* RequestedNewPassword constructor.
*
* @param string $url
* @param string $ipAddress
*/
public function __construct(string $url, string $ipAddress)
public function __construct(string $url)
{
$this->url = $url;
$this->ipAddress = $ipAddress;
}
/**
@@ -61,6 +56,8 @@ class RequestedNewPassword extends Mailable
*/
public function build(): self
{
return $this->view('emails.password-html')->text('emails.password-text')->subject((string)trans('email.reset_pw_subject'));
return $this
->markdown('emails.password')
->subject((string)trans('email.reset_pw_subject'));
}
}