diff --git a/src/Models/ModelWithExternalStorageTrait.php b/src/Models/ModelWithExternalStorageTrait.php index 335bfa5..d7583c8 100644 --- a/src/Models/ModelWithExternalStorageTrait.php +++ b/src/Models/ModelWithExternalStorageTrait.php @@ -154,7 +154,7 @@ public function getContent() if(!$this->hasInMemoryContent() && empty($this->getPath())) { return null; } else { - return !empty($this->content) ? $this->content : app(StorageDriver::class)->fetch($this->getPath()); + return !empty($this->content) ? $this->content : $this->getStorageDriverInstance()->fetch($this->getPath()); } }