[Vuejs]-How to use mysql as the data persistence backend in "Firebase + Validation Example" of vue.js?

0👍

You should try something and post what you’ve tried to get the best answers on stack overflow. The general concept is you need to re-write these two methods in the example:

methods: {
addUser: function () {
  if (this.isValid) {
    Users.push(this.newUser)
    this.newUser.name = ''
    this.newUser.email = ''
  }
},
removeUser: function (user) {
  new Firebase(baseURL + 'users/' + user.id).remove()
}
}

They should send requests to your laravel controller, and laravel handles adding and deleting in the database.

Leave a comment