@@ -136,7 +136,7 @@ public function handle()
136136 'apc ' => 'APC ' ,
137137 'array ' => 'PHP Array ' ,
138138 ];
139- $ default = (in_array ($ options , config ('cache.default ' , 'memcached ' ))) ? config ('cache.default ' , 'memcached ' ) : 'memcached ' ;
139+ $ default = (in_array (config ('cache.default ' , 'memcached ' ), $ options )) ? config ('cache.default ' , 'memcached ' ) : 'memcached ' ;
140140
141141 $ this ->line ('If you chose redis as your cache driver backend, you *must* have a redis server configured already. ' );
142142 $ variables ['CACHE_DRIVER ' ] = $ this ->choice ('Which cache driver backend would you like to use? ' , $ options , $ default );
@@ -153,7 +153,7 @@ public function handle()
153153 'apc ' => 'APC ' ,
154154 'array ' => 'PHP Array ' ,
155155 ];
156- $ default = (in_array ($ options , config ('session.driver ' , 'database ' ))) ? config ('cache.default ' , 'database ' ) : 'database ' ;
156+ $ default = (in_array (config ('session.driver ' , 'database ' ), $ options )) ? config ('cache.default ' , 'database ' ) : 'database ' ;
157157
158158 $ this ->line ('If you chose redis as your cache driver backend, you *must* have a redis server configured already. ' );
159159 $ variables ['SESSION_DRIVER ' ] = $ this ->choice ('Which session driver backend would you like to use? ' , $ options , $ default );
@@ -169,7 +169,7 @@ public function handle()
169169 'sync ' => 'Sync ' ,
170170 'null ' => 'None ' ,
171171 ];
172- $ default = (in_array ($ options , config ('queue.driver ' , 'database ' ))) ? config ('queue.driver ' , 'database ' ) : 'database ' ;
172+ $ default = (in_array (config ('queue.driver ' , 'database ' ), $ options )) ? config ('queue.driver ' , 'database ' ) : 'database ' ;
173173
174174 $ this ->line ('If you chose redis as your cache driver backend, you *must* have a redis server configured already. ' );
175175 $ variables ['QUEUE_DRIVER ' ] = $ this ->choice ('Which cache driver backend would you like to use? ' , $ options , $ default );
0 commit comments