We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cc0f32 commit 89b94b9Copy full SHA for 89b94b9
src/Illuminate/Foundation/Application.php
@@ -1326,8 +1326,11 @@ public function getCachedConfigPath()
1326
*/
1327
public function routesAreCached()
1328
{
1329
- return ($this->bound('routes.cached') && $this->make('routes.cached') === true) ||
1330
- $this['files']->exists($this->getCachedRoutesPath());
+ if ($this->bound('routes.cached')) {
+ return (bool) $this->make('routes.cached');
1331
+ }
1332
+
1333
+ return $this->instance('routes.cached', $this['files']->exists($this->getCachedRoutesPath()));
1334
}
1335
1336
/**
0 commit comments