Skip to content

Commit

Permalink
Merge pull request inertiajs#162 from hiltongoncalves/master
Browse files Browse the repository at this point in the history
Fix for create and edit user with upload photo
  • Loading branch information
claudiodekker authored Dec 6, 2021
2 parents 99b88e8 + b2f45be commit e4f0b2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/js/Pages/Users/Create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default {
},
methods: {
store() {
this.form.post(this.route('users.store'))
this.form.post(this.route('users.store').url())
},
},
}
Expand Down
2 changes: 1 addition & 1 deletion resources/js/Pages/Users/Edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default {
},
methods: {
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'),
})
},
Expand Down

0 comments on commit e4f0b2c

Please sign in to comment.