phprouter icon indicating copy to clipboard operation
phprouter copied to clipboard

Feature request: Override method

Open Huber1 opened this issue 2 years ago • 0 comments

Hello, in html forms, most browsers can't handle DELETE, PUT or PATCH as request method.

Laravel has a feature that if there's a POST request with a hidden field named _method, it overrides the real method. this would require an additional check for $_POST["_method"]

I'd really appreciate if a feature like this could be implemented, so this logic doesn't have to be implemented in each controller

Thanks in advance, Moritz

Huber1 avatar Sep 26 '22 21:09 Huber1