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

Marcolino922's avatar

Retrieve Stripe subscription expiration

Hi, I was studying Cashier / Stripe a bit directly from the Laravel documentation, I apologize in advance, but it becomes more difficult when it is not your native language.

How can I find out when a user's subscription expires? Should it be set by retrieving it from the plan?

        try {
            $request->user()->newSubscription('default', $plan)->create($request->token);
        } catch (\Exception $e) {
            return back()->withErrors(['message' => 'Error creating subscription. ' . $e->getMessage()]);
        }
0 likes
0 replies

Please or to participate in this conversation.