Laravel\Cashier\SubscriptionBuilder::withCoupon PHP Method

withCoupon() public method

The coupon to apply to a new subscription.
public withCoupon ( string $coupon )
$coupon string
    public function withCoupon($coupon)
    {
        $this->coupon = $coupon;
        return $this;
    }