/** * @return Cart|array|static[] */ public function retrieveCart() { // get the shopping cart $this->cart = $this->cart->whereUserId($this->id)->get(['id']); return $this->cart; }