use env value as default for driver choice

This commit is contained in:
Boy132
2024-05-13 08:57:06 +02:00
committed by GitHub
parent 55a0bfdf7e
commit ef9d1ab614

View File

@@ -41,7 +41,7 @@ class EmailSettingsCommand extends Command
'mandrill' => 'Mandrill',
'postmark' => 'Postmark',
],
'smtp',
env('MAIL_MAILER', env('MAIL_DRIVER', 'smtp')),
);
$method = 'setup' . studly_case($this->variables['MAIL_MAILER']) . 'DriverVariables';