if the backend fails, perhaps an exception is thrown
Yes, most likely. And you can handle non 2xx status using the onError callback.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
With a successful form submission I redirect back with a status message, which is then loaded by my front end using shared data.
However, if the backend fails, perhaps an exception is thrown, I want the frontend to handle this and display a message.
How can I do this?
In Inertia, with the form helper I also do not want to trigger the onSuccess handler as that wipes my form.
Please or to participate in this conversation.