I subscribed a user to a stripe plan using Laravel cashier. The stripe fields in users DB table are updated and a record is also saved in subscriptions table. How can I get the remaining days to expire a plan, or the expiry date itself?
Thanks @confm , but the ends_at has null if the subscription is not expired or canceled.
As in the docs, they said: "When a subscription is canceled, Cashier will automatically set the ends_at column in your database. This column is used to know when the subscribed method should begin returning false."
https://laravel.com/docs/5.3/billing#cancelling-subscriptions
What I want to know is how many days are left for the subscription to expire if it is not expired yet.