From e0a801d5fe59c9f655cf0f875b21ecf20870c662 Mon Sep 17 00:00:00 2001 From: Inaki Anduaga Date: Thu, 29 Jan 2015 17:28:32 +0100 Subject: [PATCH] Removed the unneeded IoC call to retrieve the storage driver on the getContent method --- src/Models/ModelWithExternalStorageTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } }