diff --git a/src/Illuminate/Filesystem/FilesystemAdapter.php b/src/Illuminate/Filesystem/FilesystemAdapter.php index 361d87400a90..61b5ab87d985 100644 --- a/src/Illuminate/Filesystem/FilesystemAdapter.php +++ b/src/Illuminate/Filesystem/FilesystemAdapter.php @@ -287,7 +287,7 @@ public function url($path) return $adapter->getClient()->getObjectUrl($adapter->getBucket(), $path); } elseif ($adapter instanceof LocalAdapter) { - $path = '/storage/'.$path; + $path = $adapter->getPathPrefix().$path; return Str::contains($path, '/storage/public') ? Str::replaceFirst('/public', '', $path) : $path; } else {