Skip to content

Commit

Permalink
implement theme fix
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Mar 3, 2023
1 parent 8a25585 commit 791f8ea
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Illuminate/Mail/Mailable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 791f8ea

Please sign in to comment.