diff --git a/src/Illuminate/Foundation/Console/AboutCommand.php b/src/Illuminate/Foundation/Console/AboutCommand.php index 8df4e28e1861..9d1439a878c4 100644 --- a/src/Illuminate/Foundation/Console/AboutCommand.php +++ b/src/Illuminate/Foundation/Console/AboutCommand.php @@ -188,7 +188,21 @@ protected function gatherApplicationInformation() static::addToSection('Drivers', fn () => array_filter([ 'Broadcasting' => config('broadcasting.default'), - 'Cache' => config('cache.default'), + 'Cache' => function ($json) { + $cacheStore = config('cache.default'); + + if (config('cache.stores.'.$cacheStore.'.driver') === 'failover') { + $secondary = new Collection(config('cache.stores.'.$cacheStore.'.stores')); + + return value(static::format( + value: $cacheStore, + console: fn ($value) => ''.$value.' / '.$secondary->implode(', '), + json: fn () => $secondary->all(), + ), $json); + } + + return $cacheStore; + }, 'Database' => config('database.default'), 'Logs' => function ($json) { $logChannel = config('logging.default');