Skip to content

Commit 14dfc04

Browse files
authored
Show mail body on SymfonyMailCollector (#1571)
1 parent 67e43ef commit 14dfc04

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

config/debugbar.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@
226226
],
227227
'mail' => [
228228
'timeline' => false, // Add mails to the timeline
229+
'show_body' => false,
229230
'full_log' => false,
230231
],
231232
'views' => [

src/LaravelDebugbar.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,9 @@ function (\Illuminate\Database\Events\ConnectionEstablished $event) {
436436
if ($config->get('debugbar.options.mail.full_log')) {
437437
$mailCollector->showMessageDetail();
438438
}
439+
if ($config->get('debugbar.options.mail.show_body')) {
440+
$mailCollector->showMessageBody();
441+
}
439442

440443
if ($this->hasCollector('time') && $config->get('debugbar.options.mail.timeline')) {
441444
$transport = $app['mailer']->getSymfonyTransport();

0 commit comments

Comments
 (0)