public function removeAttribute($attribute) { array_forget($this->cart->attributes, $attribute); $this->update(); }