From 5036ddb40148fc1cf83270a418a2b48de9acf611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hilton=20Gon=C3=A7alves?= <137075+hiltongoncalves@users.noreply.github.com> Date: Sat, 9 Oct 2021 17:43:27 -0300 Subject: [PATCH 1/2] Fix url for create user with photo --- resources/js/Pages/Users/Create.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/Pages/Users/Create.vue b/resources/js/Pages/Users/Create.vue index f8920dd66..633daeb54 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()) }, }, } From 3a758169506e0bcc1a77737815839c5be82748d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hilton=20Gon=C3=A7alves?= <137075+hiltongoncalves@users.noreply.github.com> Date: Sat, 9 Oct 2021 17:46:16 -0300 Subject: [PATCH 2/2] Fix user edit with upload photo --- resources/js/Pages/Users/Edit.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/Pages/Users/Edit.vue b/resources/js/Pages/Users/Edit.vue index 68b6eeb71..2152a31ad 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'), }) },