From d4370297348e3059764f80a9ee383435a86d8ff6 Mon Sep 17 00:00:00 2001 From: Luke Kuzmish <42181698+cosmastech@users.noreply.github.com> Date: Tue, 4 Nov 2025 11:05:07 -0500 Subject: [PATCH] Update Application.php --- src/Illuminate/Foundation/Application.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Illuminate/Foundation/Application.php b/src/Illuminate/Foundation/Application.php index 3b53cfc4b88e..b331453bff9c 100755 --- a/src/Illuminate/Foundation/Application.php +++ b/src/Illuminate/Foundation/Application.php @@ -1302,7 +1302,11 @@ public function getCachedPackagesPath() */ public function configurationIsCached() { - return is_file($this->getCachedConfigPath()); + if ($this->bound('config_loaded_from_cache')) { + return (bool) $this->make('config_loaded_from_cache'); + } + + return $this->instance('config_loaded_from_cache', is_file($this->getCachedConfigPath())); } /**