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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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';