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

jwhm's avatar
Level 1

Laravel Cashier send Database Notification on Webhook Listener

Is it possible to send a notification to the user when their subscription is created, and invoice paid or failed?

I wish to do this via database notifications, as I already have a few running, and would like to have all notifs in one area of the website design.

        $stripe_id = $event->payload['data']['object']['customer'];

        User::where('stripe_id', $stripe_id)->notify(
            new SubscriptionCreated('Hello from the otherside')
        );

That's what I have in my WebhookListener's handle.

0 likes
1 reply

Please or to participate in this conversation.