Merge pull request #162 from hiltongoncalves/master
Fix for create and edit user with upload photo
This commit is contained in:
commit
e4f0b2ccf0
|
@ -56,7 +56,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
store() {
|
store() {
|
||||||
this.form.post(this.route('users.store'))
|
this.form.post(this.route('users.store').url())
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,7 +74,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
update() {
|
update() {
|
||||||
this.form.post(this.route('users.update', this.user.id), {
|
this.form.post(this.route('users.update', this.user.id).url(), {
|
||||||
onSuccess: () => this.form.reset('password', 'photo'),
|
onSuccess: () => this.form.reset('password', 'photo'),
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue