Laravel 5.4 - 'updateOrCreate' method. Check If record was 'updated' or 'created'

Viewed 8630

Using the method updateOrCreate, is there a way to know which if a record was updated or created?

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

Thank you.

1 Answers
Related