diff --git a/resources/js/Pages/Users/Create.vue b/resources/js/Pages/Users/Create.vue index f8920dd..633daeb 100644 --- a/resources/js/Pages/Users/Create.vue +++ b/resources/js/Pages/Users/Create.vue @@ -56,7 +56,7 @@ export default { }, methods: { store() { - this.form.post(this.route('users.store')) + this.form.post(this.route('users.store').url()) }, }, } diff --git a/resources/js/Pages/Users/Edit.vue b/resources/js/Pages/Users/Edit.vue index 68b6eeb..2152a31 100644 --- a/resources/js/Pages/Users/Edit.vue +++ b/resources/js/Pages/Users/Edit.vue @@ -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'), }) },