Bagmaz
1 year ago

How can I use flash message after axios post?

Posted 1 year ago by Bagmaz
axios.post(`/online/booking/user/${this.currentUser}`, this.data)
                    .then(response => {
                        window.location.href="/profile" ;
                        flash('success message ...');
                    })
                    .catch(error => this.errors = error.response.data.errors);

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