Answer the question
In order to leave comments, you need to log in
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
POST - resource creation.
PUT - replacing the entire resource.
PATCH - editing a resource.
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 questionAsk a Question
731 491 924 answers to any question