php - Using post instead of put in Laravel 5 -


i using laravel 5 creating restful api, right way use post method instead of put method updating record, see no difference in using both, complete logic updating value written inside controller, helpful if suggest right method go head.

you should use put/patch. that's non-arguable. standard in implementing restful apis psr standards.

there's reason why there different http verbs.

an excerpt article:

the http verbs comprise major portion of our “uniform interface” constraint , provide action counterpart noun-based resource.

see article here.


Comments

Popular posts from this blog

html - How to custom Bootstrap grid height? -

javascript - pass values from mssql to views in node -

image - python get coordinates (pixels) of corresponding points from clicks -