From d6f3934f803d93b2ca355c483291456487e1fe56 Mon Sep 17 00:00:00 2001 From: Boy132 Date: Mon, 13 May 2024 08:51:12 +0200 Subject: [PATCH] use correct variable name for mail driver closes #209 --- app/Console/Commands/Environment/EmailSettingsCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/Environment/EmailSettingsCommand.php b/app/Console/Commands/Environment/EmailSettingsCommand.php index 15f18b9b0..82a83d68d 100644 --- a/app/Console/Commands/Environment/EmailSettingsCommand.php +++ b/app/Console/Commands/Environment/EmailSettingsCommand.php @@ -31,7 +31,7 @@ class EmailSettingsCommand extends Command */ 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'), [ 'log' => 'Log', @@ -44,7 +44,7 @@ class EmailSettingsCommand extends Command 'smtp', ); - $method = 'setup' . studly_case($this->variables['MAIL_DRIVER']) . 'DriverVariables'; + $method = 'setup' . studly_case($this->variables['MAIL_MAILER']) . 'DriverVariables'; if (method_exists($this, $method)) { $this->{$method}(); }