Lesson 08/32 · 4:02 min
Upsert is cool. Thanks I have not tried it yet.
A useful feature of firstOrCreate and updateOrCreate which I use a lot is that you can pass two arrays to these methods. First array could just be a unique field to find an existing record and second array could be the remaining fields.
Upsert is cool. Thanks I have not tried it yet.
A useful feature of firstOrCreate and updateOrCreate which I use a lot is that you can pass two arrays to these methods. First array could just be a unique field to find an existing record and second array could be the remaining fields.