public getMessage ( ) : string | ||
return | string |
public function getMessage()
{
try {
$this->discount(true);
return config('laracart.coupon_applied_message', 'Coupon Applied');
} catch (CouponException $e) {
return $e->getMessage();
}
}