public function getAttribute($attribute, $defaultValue = null) { return array_get($this->cart->attributes, $attribute, $defaultValue); }