Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

rfountain's avatar

How to get user subscription information in Spark

Sorry if this question has been asked before. I'm new to laravel & spark and I'm trying to figure out how I can get the user subscription information in my blade templates?

To elaborate, I have certain options that only appear on the page if the user is subscribed to a specific plan (I.E. User will have more features in the menu if they are on the pro plan). How can I pull the ends_at and strip_plan values for the logged in user?

0 likes
5 replies
rfountain's avatar

Thanks for the reply @nate.a.johnson . I have watched all the laracasts on spark but unfortunately there wasn't anything explicitly about that in the videos.

mindmergedesign's avatar

@rfountain did you find out how to get the user subscription information in the blade templates? I am having the same issue and the documentation on Spark is very limited.

Thanks

ejdelmonico's avatar
Level 53

If you have the Vue plugin for Chrome, you can look at the the objects. The spark user object cantains everything. You can do something like Auth::user()->current_billing_plan or Auth::user()->card_brand etc. The info is all there for you.

2 likes
rameezisrar's avatar

@ejdelmonico when the user unsubscribed and the grace period reached then the 'current_billing_plan' get null automatically on Spark or not?

Please or to participate in this conversation.