diff --git a/src/Illuminate/Mail/Markdown.php b/src/Illuminate/Mail/Markdown.php index f6b4a719b2b9..9d147f1e3cb3 100644 --- a/src/Illuminate/Mail/Markdown.php +++ b/src/Illuminate/Mail/Markdown.php @@ -61,12 +61,12 @@ public function render($view, array $data = [], $inliner = null) 'mail', $this->htmlComponentPaths() )->make($view, $data)->render(); - $viewPath = Str::contains($this->theme, '::') + $theme = Str::contains($this->theme, '::') ? $this->theme : 'mail::themes.'.$this->theme; return new HtmlString(($inliner ?: new CssToInlineStyles)->convert( - $contents, $this->view->make($viewPath, $data)->render() + $contents, $this->view->make($theme, $data)->render() )); }