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

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -