diff --git a/src/MediaManager.php b/src/MediaManager.php index 8fa93ee..9ca7b31 100644 --- a/src/MediaManager.php +++ b/src/MediaManager.php @@ -264,7 +264,7 @@ public function getFilePreview($file) switch ($this->detectFileType($file)) { case 'image': - if ($this->storage->getDriver()->getConfig()->has('url')) { + if (method_exists($this->storage->getDriver(), 'getConfig') && $this->storage->getDriver()->getConfig()->has('url')) { $url = $this->storage->url($file); $preview = "\"Attachment\""; } else {