How to display Laravel Nova save success message?

Posted 2 months ago by mikebronner

Using the following, it is easy to show an error message in Nova in Vue:

Nova.$emit('error', error.response);

However, using the anticipated success option doesn't do anything:

Nova.$emit('success', "Yay, it worked!");

What is the right way to do this? I'm looking to show that a save was successful. Thanks!

                Nova.request()
                    .put("/my/nova/route/" + this.parameter, data)
                    .then(function (response) {
                        Nova.$emit("success", "Yay, it worked!");
                    })
                    .catch(function (error) {
                        Nova.$emit('error', error.response);
                    });

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.