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.
Source:stackexchange.com