diff --git a/src/Illuminate/Filesystem/FilesystemAdapter.php b/src/Illuminate/Filesystem/FilesystemAdapter.php index 1d5d76074cdd..d4b019e50042 100644 --- a/src/Illuminate/Filesystem/FilesystemAdapter.php +++ b/src/Illuminate/Filesystem/FilesystemAdapter.php @@ -238,6 +238,8 @@ public function url($path) return $adapter->getClient()->getObjectUrl($adapter->getBucket(), $path); } elseif ($adapter instanceof LocalAdapter) { return '/storage/'.$path; + } elseif (method_exists($adapter, 'getUrl')) { + return $adapter->getUrl($path); } else { throw new RuntimeException('This driver does not support retrieving URLs.'); }