use correct variable name for mail driver

closes #209
This commit is contained in:
Boy132 2024-05-13 08:51:12 +02:00 committed by GitHub
parent f9e8adad30
commit d6f3934f80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,7 +31,7 @@ class EmailSettingsCommand extends Command
*/ */
public function handle(): void public function handle(): void
{ {
$this->variables['MAIL_DRIVER'] = $this->option('driver') ?? $this->choice( $this->variables['MAIL_MAILER'] = $this->option('driver') ?? $this->choice(
trans('command/messages.environment.mail.ask_driver'), trans('command/messages.environment.mail.ask_driver'),
[ [
'log' => 'Log', 'log' => 'Log',
@ -44,7 +44,7 @@ class EmailSettingsCommand extends Command
'smtp', 'smtp',
); );
$method = 'setup' . studly_case($this->variables['MAIL_DRIVER']) . 'DriverVariables'; $method = 'setup' . studly_case($this->variables['MAIL_MAILER']) . 'DriverVariables';
if (method_exists($this, $method)) { if (method_exists($this, $method)) {
$this->{$method}(); $this->{$method}();
} }