PUT or PATCH methods are not going as expected
Closed this issue · 2 comments
Ihabafia commented
How could I direct the form to be a PUT or PATCH request?
I made the route to be PATCH like:
Route::patch('foo', 'foo@bar')->name(foo.bar);
but the form keeps going as a POST.
I tried to add a hidden _method input field like Laravel:
<input type="hidden" name="_method" value="PATCH">
but it still goes as a POST.
Could you please help.
andersonsalas commented
Bug confirmed. It's a typo in the code ($_SERVER['RQUEST_METHOD']
):
Lines 182 to 189 in 3161b02
andersonsalas commented
Version 1.0.2 released 👍