public function removeItem($itemHash) { foreach ($this->cart->items as $itemKey => $item) { if ($item->getHash() == $itemHash) { unset($this->cart->items[$itemKey]); break; } } $this->events->fire('laracart.removeItem', $item); $this->update(); }