Tweak default config for mail body (#1572)

This commit is contained in:
Barry vd. Heuvel 2024-03-12 12:15:14 +01:00 committed by GitHub
parent 14dfc04db0
commit ee233350ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 6 deletions

View File

@ -226,8 +226,7 @@ return [
],
'mail' => [
'timeline' => false, // Add mails to the timeline
'show_body' => false,
'full_log' => false,
'show_body' => true,
],
'views' => [
'timeline' => false, // Add the views to the timeline (Experimental)

View File

@ -433,10 +433,7 @@ class LaravelDebugbar extends DebugBar
$mailCollector->addSymfonyMessage($event->sent->getSymfonySentMessage());
});
if ($config->get('debugbar.options.mail.full_log')) {
$mailCollector->showMessageDetail();
}
if ($config->get('debugbar.options.mail.show_body')) {
if ($config->get('debugbar.options.mail.show_body') || $config->get('debugbar.options.mail.full_log')) {
$mailCollector->showMessageBody();
}