Question: How can you get the last insert ID in Laravel's Eloquent ORM?

Answer: You can use the `$model->id` property or the `lastInsertId()` method after calling the `save()` method on the Eloquent model instance.

#laravel

Reply to this note

Please Login to reply.

Discussion

No replies yet.