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

elo's avatar
Level 3

Sending notification when model is updated via Nova

I have an Order model that I am observing for updates. When an update occurs on the model, I am checking if a field paymentStatus is set to paid or not. If the paymentStatus is paid, I want an email notification sent to the users.

Testing on postman sends the notification as intended but when the update is done on Nova, no notification is sent even though the update is successful and paymentStatus is set to paid.

How can I get the notification sent when update is done on Nova?

0 likes
2 replies
wilburpowery's avatar

Are you using a model observer? If so, everything should work fine with Nova.

If for whatever reason you're doing that check say in a controller or somewhere else it would make sense that updating through Nova would not send off any notification.

elo's avatar
elo
OP
Best Answer
Level 3

Thanks @wilburpowery for your response. Yes I am using model observer but for some reason I am yet to figure out, the notification never gets sent when I do an update on Nova.

I used Nova actions to achieve this. So in the nova handle action, I send the notification to the user after the function that updates the order

Please or to participate in this conversation.