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.

Display a user’s subscription status

Display a user’s subscription status

- (male narrator) Alright, so now that we've gone ahead and subscribed a user to a plan, now we wanna actually create a better experience to display the user's subscription status back to them on their dashboard, and that's gonna be the goal of today's video. So, we're going to start off by checking to see if the user is subscribed. I'll show you guys how you can do that on the front end and also on the back end. And then we're also going to display the current plan that the user is on so that they can see it and also so that we can check which one they're on. Then we're gonna want to hide the checkout button for whichever plan they're currently on. So if they're currently on the monthly plan, we don't wanna show the monthly plan button because they've already subscribed to that, so we wanna hide that button from them so they can't upgrade to that either. Alright? So those are gonna be kinda the main focus points of this video. Alright, so here we are back inside of our project. This…

Contents