From 970c722958f28860e60fe65087a2fb3a97d57d7b Mon Sep 17 00:00:00 2001 From: Jodie Dunlop Date: Thu, 1 Jun 2017 20:51:49 +1000 Subject: [PATCH] Allow a plain text alternative view when using markdown within mailables --- src/Illuminate/Mail/Mailable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Mail/Mailable.php b/src/Illuminate/Mail/Mailable.php index 9e1f8eed5707..6f7d02c4d5db 100644 --- a/src/Illuminate/Mail/Mailable.php +++ b/src/Illuminate/Mail/Mailable.php @@ -192,7 +192,7 @@ protected function buildMarkdownView() return [ 'html' => $markdown->render($this->markdown, $data), - 'text' => $markdown->renderText($this->markdown, $data), + 'text' => isset($this->textView) ? $this->textView : $markdown->renderText($this->markdown, $data), ]; }