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;
}
}
}