From 8dea942f3c61ed450fe7dfee968dc9943fa649f8 Mon Sep 17 00:00:00 2001 From: Harinder Date: Wed, 26 May 2021 13:56:01 +0530 Subject: [PATCH] Update Cart.php Fix MongoDB Driver issue #478 --- src/Cart.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cart.php b/src/Cart.php index b3c629bc..69d42ab6 100644 --- a/src/Cart.php +++ b/src/Cart.php @@ -389,11 +389,11 @@ public function restore($identifier) ->where('instance', $this->currentInstance()) ->where('identifier', $identifier)->first(); - $storedContent = unserialize($stored->content); + $storedContent = unserialize(data_get($stored, 'content')); $currentInstance = $this->currentInstance(); - $this->instance($stored->instance); + $this->instance(data_get($stored, 'instance')); $content = $this->getContent();