From 4069c8fb0548d68b845a6219d341c9bb5ef5a4c1 Mon Sep 17 00:00:00 2001 From: Chinmay Purav <70144052+chinmaypurav@users.noreply.github.com> Date: Thu, 30 Oct 2025 03:12:09 +0530 Subject: [PATCH 1/2] feat: added detailed about for cache failover driver --- .../Foundation/Console/AboutCommand.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/Illuminate/Foundation/Console/AboutCommand.php b/src/Illuminate/Foundation/Console/AboutCommand.php index 8df4e28e1861..1117cec1fa97 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'); From fc5f71e7474c7fbf3b8a1ee8b1c5a3d7ab6fcecf Mon Sep 17 00:00:00 2001 From: Chinmay Purav <70144052+chinmaypurav@users.noreply.github.com> Date: Thu, 30 Oct 2025 03:19:08 +0530 Subject: [PATCH 2/2] remove whitespace --- src/Illuminate/Foundation/Console/AboutCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Foundation/Console/AboutCommand.php b/src/Illuminate/Foundation/Console/AboutCommand.php index 1117cec1fa97..9d1439a878c4 100644 --- a/src/Illuminate/Foundation/Console/AboutCommand.php +++ b/src/Illuminate/Foundation/Console/AboutCommand.php @@ -200,7 +200,7 @@ protected function gatherApplicationInformation() json: fn () => $secondary->all(), ), $json); } - + return $cacheStore; }, 'Database' => config('database.default'),