diff --git a/src/LaraCart.php b/src/LaraCart.php index a380462..3502423 100644 --- a/src/LaraCart.php +++ b/src/LaraCart.php @@ -159,7 +159,7 @@ public function add( $taxable = true, $lineItem = false ) { - return $this->addItem( + $item = $this->addItem( new CartItem( $itemID, $name, @@ -170,6 +170,8 @@ public function add( $lineItem ) ); + + return $this->getItem($item->getHash()); } /**