PUT method 400 bad request error #38742
Replies: 7 comments
-
This seems like a question for one of the support channels. What you need to Put as an Input into the Form: <input type="hidden" name="_method" value="put" /> If you want to make a Request with Ajax, then you would put it there. |
Beta Was this translation helpful? Give feedback.
-
Also please check the currently supported Laravel Versions: https://laravel.com/docs/8.x/releases#support-policy And upgrade if possible. |
Beta Was this translation helpful? Give feedback.
-
Yes i have included _method field in every form request
|
Beta Was this translation helpful? Give feedback.
-
You can also use the |
Beta Was this translation helpful? Give feedback.
-
@daniel-koertvelyessy I am not sure if this was possible in Laravel 5.1 https://laravel.com/docs/5.1/routing#form-method-spoofing |
Beta Was this translation helpful? Give feedback.
-
Is there a chance that laravel generate 400 bad request error ? Sir |
Beta Was this translation helpful? Give feedback.
-
I don't know for Version 5.1 you need to share a little bit of code (routes, controllers, blade, ...) Also I only joint after version 5.6. I recommend upgrading to a newer version for more features and for security reasons. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
I couldn't use _method:put in form data to sent put request.
Everytime I add _method:put to form data , It generate 400 browser could not understand your request.
When i remove _method:put , It works as normal but it go with POST method.
Steps To Reproduce:
Beta Was this translation helpful? Give feedback.
All reactions