Replies: 1 comment
-
I just noticed that the method actually does work and the user does save. However it's doing a second PATCH request, and that's due do the following line return Redirect::route('users.edit', $user->id, 303); It's redirecting me to I thought the 303 response code would've fixed that since that's what the documentation says. https://inertiajs.com/redirects#303-response-code @reinink is this a bug perhaps ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
On localhost everything works fine. However on production I get the error 405 - Method not allowed.
My code is like this
However if I change
form.patch
toform.post
and add the method patch to the useForm like:It seems to work, but it still puts out a post request. Preferably I want to use the .patch function.
My route is a simple resource route like
And in my put/patch (update) method I have the following
What's a better way to do this ?
Beta Was this translation helpful? Give feedback.
All reactions