From 791f8ea70b5872ae4483a32f6aeb28dd2ed4b8d7 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 3 Mar 2023 12:39:36 -0600 Subject: [PATCH] implement theme fix --- src/Illuminate/Mail/Mailable.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Illuminate/Mail/Mailable.php b/src/Illuminate/Mail/Mailable.php index 8502f55ac49f..ba4aeccdc457 100644 --- a/src/Illuminate/Mail/Mailable.php +++ b/src/Illuminate/Mail/Mailable.php @@ -2,6 +2,7 @@ namespace Illuminate\Mail; +use Illuminate\Config\Repository as ConfigRepository; use Illuminate\Container\Container; use Illuminate\Contracts\Filesystem\Factory as FilesystemFactory; use Illuminate\Contracts\Mail\Attachable; @@ -325,7 +326,12 @@ protected function buildMarkdownView() $markdown = Container::getInstance()->make(Markdown::class); if (isset($this->theme)) { - $markdown->theme($this->theme); + $markdown->theme( + $this->theme, + Container::getInstance() + ->get(ConfigRepository::class) + ->get('mail.markdown.theme', 'default') + ); } $data = $this->buildViewData();