Merge pull request #162 from hiltongoncalves/master

Fix for create and edit user with upload photo
This commit is contained in:
Claudio Dekker 2021-12-06 15:56:57 +01:00 committed by GitHub
commit e4f0b2ccf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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())
}, },
}, },
} }

View File

@ -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'),
}) })
}, },