diff --git a/src/Illuminate/Mail/Markdown.php b/src/Illuminate/Mail/Markdown.php index 725247e4d00d..9a1706d383b1 100644 --- a/src/Illuminate/Mail/Markdown.php +++ b/src/Illuminate/Mail/Markdown.php @@ -63,8 +63,8 @@ public function render($view, array $data = [], $inliner = null) 'mail', $this->htmlComponentPaths() )->make($view, $data)->render(); - if ($this->view->exists($custom = Str::start($this->theme, 'mail.'))) { - $theme = $custom; + if ($this->view->exists($customTheme = Str::start($this->theme, 'mail.'))) { + $theme = $customTheme; } else { $theme = Str::contains($this->theme, '::') ? $this->theme