public function checkMinAmount($minAmount, $throwErrors = true)
    {
        $laraCart = \App::make(LaraCart::SERVICE);

        if ($laraCart->subTotal(false, false, false) >= $minAmount) {
            return true;
        } else {
            if ($throwErrors) {
                throw new CouponException('You must have at least a total of '.$laraCart->formatMoney($minAmount));
            } else {
                return false;
            }
        }
    }
public function checkMinAmount($minAmount, $throwErrors = true)
    {
        $laraCart = \App::make(LaraCart::SERVICE);

        if ($laraCart->subTotal(false, false, false) >= $minAmount) {
            return true;
        } else {
            if ($throwErrors) {
                throw new CouponException('You must have at least a total of '.$laraCart->formatMoney($minAmount));
            } else {
                return false;
            }
        }
    }
public function checkMinAmount ( $ minAmount , $ throwErrors = true ) { $ laraCart = \ App :: make ( LaraCart :: SERVICE ) ; if ( $ laraCart -> subTotal ( false , false , false ) >= $ minAmount ) { return true ; } else { if ( $ throwErrors ) { throw new CouponException ( 'You must have at least a total of ' . $ laraCart -> formatMoney ( $ minAmount ) ) ; } else { return false ; } } }
Checks the minimum subtotal needed to apply the coupon.

@param $minAmount
@param $throwErrors

@throws CouponException

@return bool
Checks the minimum subtotal needed to apply the coupon .