A
A
Alexey Reut2021-04-21 19:41:57
Laravel
Alexey Reut, 2021-04-21 19:41:57

Laravel InsertOrIgnore get id of inserted record?

Good day everyone! And straight to the point. I need to insert a record that has a date field like this 0000-00-00 00:00:00, and of course I use this scheme. $model->insertOrIgnore($arrValues); I did some digging and didn't find anything useful. How can I get the id of an inserted record with an operator? (I can't do anything with the table).

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question