Issue with _id to id conversion when upgrading to laravel-mongodb v5 (Laravel 12 support)

just want to make sure that you added this setting under config/database.php for the rename_embedded_id_field to take affect.
or if you did: \MongoDB\Connection::setRenameEmbeddedIdField(false);

(this was introduced in 5.3 btw)

1 Like