diff --git a/cashier-paddle.md b/cashier-paddle.md index 9b6c2e0f47..2c74a3f88d 100644 --- a/cashier-paddle.md +++ b/cashier-paddle.md @@ -1147,7 +1147,8 @@ Once you are ready to create an actual subscription for the user, you may use th use Illuminate\Http\Request; Route::get('/user/subscribe', function (Request $request) { - $checkout = $user->subscribe('pri_monthly') + $checkout = $request->user() + ->subscribe('pri_monthly') ->returnTo(route('home')); return view('billing', ['checkout' => $checkout]);