Now, let's see example of how to change stripe subscription plan in laravel application. We will talk about how to update stripe subscription plan in laravel app. I am going to show you how to update stripe subscription plan in laravel. 

This tutorial will give you how to update an existing subscription plan in laravel.

Given below is the simple and easy way update stripe subscription in laravel. 

So let's see the solution below:

\Stripe\Stripe::setApiKey('STRIPE_SECRET');

$subscription = \Stripe\Subscription::retrieve('subscription id';
// Change Plan
$charge = \Stripe\Subscription::update('subscription id', [
    'cancel_at_period_end' => false,
    'proration_behavior' => 'create_prorations',
    'billing_cycle_anchor' => 'unchanged',
    'items' => [
        [
            'id' => $subscription->items->data[0]->id,
            'price' => 'plan id',
        ],
    ],
]);


I hope this solution helps you.