Laravel 5.4 - method "updateOrCreate". Verification If the record has been “updated” or “created”,

Using the method updateOrCreate, is there a way to find out which record has been updated or created?

UPDATE: I need to use this function to return 201for the created record or 204for the updated record.

Thank.

+4
source share

Source: https://habr.com/ru/post/1678093/


All Articles