bootstrap-form icon indicating copy to clipboard operation
bootstrap-form copied to clipboard

PATCH method

Open OvalMedia opened this issue 8 years ago • 3 comments

The formbuilder is hardcoding either PUT or POST. From what I understand the PATCH method is preferred to PUT. Maybe this could be somewhat optional?

OvalMedia avatar Aug 23 '16 21:08 OvalMedia

I think Laravel is interchangeable as far as PUT/PATCH goes, but PATCH has become preferred. Could look into swapping the default and making it adjustable in a future release.

dwightwatson avatar Aug 23 '16 23:08 dwightwatson

Actually there is quite a difference: https://laracasts.com/discuss/channels/general-discussion/whats-the-differences-between-put-and-patch?page=1

OvalMedia avatar Aug 24 '16 19:08 OvalMedia

Oh yeah, there's a semantic difference between the two HTTP methods, but Laravel tends to treat them the same (for example, I think the resource route sends both methods to the same place).

dwightwatson avatar Aug 24 '16 21:08 dwightwatson