PUT & DELETE requests - Laravel app on a shared hosting PUT & DELETE requests - Laravel app on a shared hosting apache apache

PUT & DELETE requests - Laravel app on a shared hosting


Laravel doesn't actually use "PUT" and "DELETE" requests in forms. Instead, a hidden form field is added to the form when you specify a PUT or DELETE action:

<input name="_method" type="hidden" value="PUT">

The issue could be that you're actually using PUT and DELTE as actions in your form, when you should be using a hidden field like above.

The form action should be POST and then then add the hidden _method field with the value of your desired action (as above). Example:

<form method="POST" action="route/url">    <input name="_method" type="hidden" value="PUT">    <!-- other form fields here --></form>