Skip to content

Commit 791f8ea

Browse files
committed
implement theme fix
1 parent 8a25585 commit 791f8ea

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Illuminate/Mail/Mailable.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Illuminate\Mail;
44

5+
use Illuminate\Config\Repository as ConfigRepository;
56
use Illuminate\Container\Container;
67
use Illuminate\Contracts\Filesystem\Factory as FilesystemFactory;
78
use Illuminate\Contracts\Mail\Attachable;
@@ -325,7 +326,12 @@ protected function buildMarkdownView()
325326
$markdown = Container::getInstance()->make(Markdown::class);
326327

327328
if (isset($this->theme)) {
328-
$markdown->theme($this->theme);
329+
$markdown->theme(
330+
$this->theme,
331+
Container::getInstance()
332+
->get(ConfigRepository::class)
333+
->get('mail.markdown.theme', 'default')
334+
);
329335
}
330336

331337
$data = $this->buildViewData();

0 commit comments

Comments
 (0)