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.

Modifying a user’s subscription

Modifying a user’s subscription

- [Instructor] Alright so now that we've gone ahead and set a user up with a subscription, of course eventually a user is inevitably going to need to modify their subscription. They might want to change it from yearly to monthly or monthly to yearly and so forth, and so we're gonna give them the ability to change their subscription at any time. So we'll talk about how you can upgrade or downgrade a user to a different plan in this video. It's actually a pretty simple process, laravel cashier handles most of it. And in the second part of this video we'll talk about canceling a subscription altogether. Alright so here we are back inside of our project. If I go to our homepage you can see this is where we show the people that they are subscribed or not subscribed. Now what I wanna do is offer the ability for a user to upgrade or downgrade their subscription depending on the subscription they're currently on. So the way I wanna do this, I'm actually gonna kinda rework this page. This…

Contents