0 votes
in Laravel by
What is the significant difference between insert() and insertGetId() function in Laravel?

1 Answer

0 votes
by

Insert(): This function is simply used to insert a record into the database. It not necessary that ID should be autoincremented.

InsertGetId(): This function also inserts a record into the table, but it is used when the ID field is auto-increment.

...