diff --git a/src/Illuminate/Foundation/Application.php b/src/Illuminate/Foundation/Application.php index 930c406f7ebf..49605d25d83f 100755 --- a/src/Illuminate/Foundation/Application.php +++ b/src/Illuminate/Foundation/Application.php @@ -1144,7 +1144,7 @@ public function getCachedConfigPath() */ public function routesAreCached() { - return $this['files']->exists($this->getCachedRoutesPath()); + return is_file($this->getCachedRoutesPath()); } /** @@ -1164,7 +1164,7 @@ public function getCachedRoutesPath() */ public function eventsAreCached() { - return $this['files']->exists($this->getCachedEventsPath()); + return is_file($this->getCachedEventsPath()); } /**