LukePOLO\LaraCart\Traits\CouponTrait::canApply PHP Method

canApply() public method

Checks to see if we can apply the coupon.
public canApply ( ) : boolean
return boolean
    public function canApply()
    {
        try {
            $this->discount(true);
            return true;
        } catch (CouponException $e) {
            return false;
        }
    }