From 2f6db9e9bcebaa00e15f58eedd686934b7d716d9 Mon Sep 17 00:00:00 2001 From: Mark Paap Date: Wed, 7 Jun 2017 10:02:20 +0200 Subject: [PATCH] Undefined variable: markdown in Mailable.php Fix for error Undefined variable: markdown in Mailable.php (line 226) --- src/Illuminate/Mail/Mailable.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Mail/Mailable.php b/src/Illuminate/Mail/Mailable.php index 074768c37368..a8145cdbe4c2 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' => $this->buildMarkdownText(), + 'text' => $this->buildMarkdownText($markdown, $data), ]; } @@ -219,7 +219,7 @@ public function buildViewData() * * @return string */ - protected function buildMarkdownText() + protected function buildMarkdownText($markdown, $data) { return isset($this->textView) ? $this->textView