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.
Application::routesAreCached()
CachesRoutes
1 parent 042c267 commit dd64ab7Copy full SHA for dd64ab7
src/Illuminate/Filesystem/FilesystemServiceProvider.php
@@ -2,6 +2,7 @@
2
3
namespace Illuminate\Filesystem;
4
5
+use Illuminate\Contracts\Foundation\CachesRoutes;
6
use Illuminate\Http\Request;
7
use Illuminate\Support\Facades\Route;
8
use Illuminate\Support\ServiceProvider;
@@ -78,7 +79,7 @@ protected function registerManager()
78
79
*/
80
protected function serveFiles()
81
{
- if ($this->app->routesAreCached()) {
82
+ if ($this->app instanceof CachesRoutes && $this->app->routesAreCached()) {
83
return;
84
}
85
0 commit comments