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

yougotnet's avatar

Laravel Cashier not storing subscription in subscriptions table

I am successfully creating a new subscription with Stripe but nothing is being stored in the Subscriptions table.

I am using Customer table instead of Users and have updated the service.php file for Stripe.

'stripe' => [ 'model' => App\Customer::class, 'key' => env('STRIPE_KEY'), 'secret' => env('STRIPE_SECRET'), ],

$response = Auth::user()->customer->newSubscription($request->get('plan'), '........')->quantity($request->get('users'))->create($stripeToken, ['email' => Auth::user()->email]);

Any help is greatly appreciated!

0 likes
0 replies

Please or to participate in this conversation.