This commit is contained in:
baodev0
2026-07-25 16:26:32 +07:00
parent 6497cc8ddc
commit ad743d3767
3 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -62,8 +62,8 @@ class MailConfigServiceProvider extends ServiceProvider
$config = config('mail');
$config['default'] = $transport;
$config['from'] = [
'address' => $mail->user ?? config('mail.from.address', 'no-reply@example.com'),
'name' => $company,
'address' => $mail->from_address ?? $mail->user ?? config('mail.from.address', 'no-reply@example.com'),
'name' => $mail->from_name ?? $company,
];
$config['mailers'][$transport] = array_merge($config['mailers'][$transport] ?? [], [
'transport' => $transport,