Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x] Remove _method in UpdateProfileInformationForm.vue #1493

Closed
wants to merge 1 commit into from

Conversation

osbre
Copy link
Contributor

@osbre osbre commented May 15, 2024

Makes it a bit simpler. I assume the _method property was used when there were no other ways to submit the form.

Also, this is the only place with _method in Jetstream and Breeze.

@taylorotwell
Copy link
Member

Hmm, not sure we should change this without full understanding of why it was historically done.

@osbre
Copy link
Contributor Author

osbre commented May 17, 2024

You're 100% right 😅 I just checked the docs:

Uploading files via put or patch is not supported in Laravel. Instead, make the request via post, including a _method field set to put or patch. This is called form method spoofing.

https://inertiajs.com/manual-visits#method

@osbre osbre deleted the patch-2 branch June 29, 2024 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants