Skip to content

Commit

Permalink
Merge branch 'master' of github.com:lukepolo/laracart
Browse files Browse the repository at this point in the history
  • Loading branch information
lukepolo committed Jan 27, 2018
2 parents 885336e + 673cd88 commit 35199a7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/CartItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ public function getDiscount($format = true)

/**
* @param CouponContract $coupon
*
* @return $this
*/
public function addCoupon(CouponContract $coupon)
Expand Down Expand Up @@ -382,18 +383,12 @@ public function searchForSubItem($data)
return $matches;
}

/**
*
*/
public function disable()
{
$this->active = false;
app('laracart')->update();
}

/**
*
*/
public function enable()
{
$this->active = true;
Expand Down

0 comments on commit 35199a7

Please sign in to comment.