We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd7e770 commit f8c662fCopy full SHA for f8c662f
resources/js/Pages/Users/Edit.vue
@@ -128,7 +128,7 @@ export default {
128
data.append('password', this.form.password || '');
129
data.append('owner', this.form.owner ? '1' : '0');
130
data.append('photo', this.form.photo || '');
131
- data.append('_method', 'put');
+ data.append('_csrfToken', this.$page._csrfToken);
132
133
this.$inertia.post(`/users/edit/${this.user.id}`, data).then(() => {
134
this.sending = false;
0 commit comments