This post is marked as solved. If you think the information contained on this thread must be part of the
official documentation, please contribute submitting a
pull request to its repository.
How can i get the last insert record ID ?
Somethink like ....
Last inserted ID is automatically assigned to the identity field, you just have to access it: $model->save() and then $model->id