作者 lyh

gx

... ... @@ -31,6 +31,8 @@ class TextMail extends Mailable
*/
public function build()
{
return $this->subject($this->subject)->view('mail.text', ['text' => $this->text]);
return $this->subject($this->subject)->text('mail.text', ['text' => $this->text])
->view('mail.html', ['text' => $this->text]); // HTML 内容
}
}
... ...
<div class="editor-text-wrap">
{!! $text !!}
</div>
... ...