diff --git a/src/Support/Discover/ComponentScout.php b/src/Support/Discover/ComponentScout.php index 4920fd3e..6d139fd0 100644 --- a/src/Support/Discover/ComponentScout.php +++ b/src/Support/Discover/ComponentScout.php @@ -29,7 +29,7 @@ public function identifier(): string public function cacheDriver(): FileDiscoverCacheDriver { return new FileDiscoverCacheDriver( - implode('/', [sys_get_temp_dir(), $this->identifier()]), + $this->cacheDirectory() ); } @@ -46,4 +46,9 @@ public function path(string $path): static return $this; } + + protected function cacheDirectory(): string + { + return realpath(config('wireuse.cache-path', storage_path('framework/cache'))); + } }