We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69cd330 commit bda42b6Copy full SHA for bda42b6
1 file changed
app/Console/Commands/Environment/AppSettingsCommand.php
@@ -147,11 +147,15 @@ private function checkForRedis()
147
$this->output->comment(trans('command/messages.environment.app.redis_pass_help'));
148
$this->variables['REDIS_PASSWORD'] = $this->option('redis-pass') ?? $this->output->askHidden(
149
trans('command/messages.environment.app.redis_password'), function () {
150
- return true;
+ return '';
151
}
152
);
153
154
155
+ if (empty($this->variables['REDIS_PASSWORD'])) {
156
+ unset($this->variables['REDIS_PASSWORD']);
157
+ }
158
+
159
$this->variables['REDIS_PORT'] = $this->option('redis-port') ?? $this->ask(
160
trans('command/messages.environment.app.redis_port'), $this->config->get('database.redis.default.port')
161
0 commit comments