B
B
BonBon Slick2016-11-08 21:32:01
RESTful API
BonBon Slick, 2016-11-08 21:32:01

Patch, Post, Put methods when to use Laravel 5.3?

I understand that:
Patch - should be used when updating 1 field out of 2 or more.
Put when we change everything.
Post , when we do not know how many fields we will change.
Did I understand everything correctly?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
JhaoDa, 2016-11-08
@BonBonSlick

POST - resource creation.
PUT - replacing the entire resource.
PATCH - editing a resource.

S
Stanislav Pochepko, 2016-11-08
@DJZT

Read about rest. This is one of the ways to put everything on the shelves in the url

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question