Skip to content

Commit 2f6db9e

Browse files
authored
Undefined variable: markdown in Mailable.php
Fix for error Undefined variable: markdown in Mailable.php (line 226)
1 parent de8084d commit 2f6db9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Mail/Mailable.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ protected function buildMarkdownView()
192192

193193
return [
194194
'html' => $markdown->render($this->markdown, $data),
195-
'text' => $this->buildMarkdownText(),
195+
'text' => $this->buildMarkdownText($markdown, $data),
196196
];
197197
}
198198

@@ -219,7 +219,7 @@ public function buildViewData()
219219
*
220220
* @return string
221221
*/
222-
protected function buildMarkdownText()
222+
protected function buildMarkdownText($markdown, $data)
223223
{
224224
return isset($this->textView)
225225
? $this->textView

0 commit comments

Comments
 (0)