From the course: Extending Laravel with First Party Packages

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Setting up a free trial or coupons

Setting up a free trial or coupons

- [Instructor] All right, so we're getting to the point where we really understand how to manage these subscriptions. Now, there are a few last things I wanna talk about before we wrap up this section. And that is working with free trials and with coupons. These are two things you might wanna do for marketing purposes. And so we're gonna talk about how you can set up a free trial, how the free trial works, and then we'll talk about how you can allow coupons for your subscriptions as well. So we'll cover both of those in this video. So again, we're just gonna focus on those two elements, How to enable a free trial when you create a new subscription and how to add a coupon to a subscription as well. Let's go ahead and take a look at this in the browser and in the code. All right, now, one thing I wanna mention about the last video. I did make a mistake. And when we had this, Your subscription will not renew, and we tested the onGracePeriod, there is one bug that I didn't think about and…

Contents