How to display Laravel Nova save success message?

Posted 1 week 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.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.