File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
app/Console/Commands/Environment Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -147,11 +147,15 @@ private function checkForRedis()
147147 $ this ->output ->comment (trans ('command/messages.environment.app.redis_pass_help ' ));
148148 $ this ->variables ['REDIS_PASSWORD ' ] = $ this ->option ('redis-pass ' ) ?? $ this ->output ->askHidden (
149149 trans ('command/messages.environment.app.redis_password ' ), function () {
150- return true ;
150+ return '' ;
151151 }
152152 );
153153 }
154154
155+ if (empty ($ this ->variables ['REDIS_PASSWORD ' ])) {
156+ unset($ this ->variables ['REDIS_PASSWORD ' ]);
157+ }
158+
155159 $ this ->variables ['REDIS_PORT ' ] = $ this ->option ('redis-port ' ) ?? $ this ->ask (
156160 trans ('command/messages.environment.app.redis_port ' ), $ this ->config ->get ('database.redis.default.port ' )
157161 );
You can’t perform that action at this time.
0 commit comments