Check out Subscription class in Laravel Cashier. It has plenty of methods, such as valid(), active(), and cancelled(). You can also check user's status directly with the help of Billable trait: $user->subscribed() which returns true or false.
Jan 13, 2017
2
Level 1
Check if Subscription is Valid
Hi,
I was wondering if there was a way in blade and in laravel in general to check if the users subscription has not been renewed/is cancelled.
I've found solutions of doing this in Vue, but vue is only being used for the Login, Register & Settings pages.
Thanks in advance.
Please or to participate in this conversation.