I'm having a little trouble wrapping my head around how Cashier works now under version 7.0.
I have an app that's being updated from Laravel 5.1 to 5.3 and everything for Cashier is completely different. The user fields have changed, there's a subscriptions table now.
Most importantly the Billable trait has changed and many methods have either changed or been removed altogether. For instance everSubscribed is gone, and I can't see a way to find out if the user was ever subscribed and may have previous invoices.
I've read through the docs like 10 times now and I'm not getting it.
My app has 5 payment options (or subscriptions) the first being the developer plan which is free and does exist in Stripe as a subscription. This is the default when the user signs up.
Looking at the docs:
$user = User::find(1);
$user->newSubscription('main', 'monthly')->create($creditCardToken);
I'm gathering that monthly is the id of my plan in Stripe, what the hell is main and what is it for? The docs say it's the name of the subscription, and where would that name come from?
I have the details of each plan available in a plans table on my database. Do I use some field under the plan for this variable, or what?
If anyone can maybe point me to a working implementation I can use as an example, or maybe help explain the flow of this a little better I would appreciate it.
@JeffreyWay
It would be great to get a new video on Cashier since it's changed dramatically since your original video.
Thanks all.