khaleelrasakh/laravel-mongodb
A Laravel package by khaleelrasakh that aims to add MongoDB support, letting you work with document-based NoSQL storage through familiar Eloquent-style models and query builders. A lightweight option for Laravel apps needing MongoDB; early-stage with limited adoption so far.
id → _id conversion for documents and sub-documents, making identifier mapping explicit. This is the kind of change that forces a product decision on whether identifiers are an internal storage detail or part of your public API surface (webhooks, exports, third-party integrations)._id produced implicitly, this release is a candidate for a versioned API change and a customer communication, not just a deploy.Consider adoption when:
id/_id change surfaces in CI rather than production.Look elsewhere or defer when:
id → _id mapping in many places and you have no test coverage over document serialization — the blast radius is unmeasured.For executives: This is a dependency update to our Laravel document-storage layer, and it changes behavior rather than just fixing bugs — a patch release stopped automatically rewriting document identifiers. That is directionally good hygiene (less hidden magic, more explicit contracts), but it is not a "merge and forget" update. The ask is a short, scheduled upgrade window with regression tests on anything that reads or writes documents, plus a check on whether any external integration has observed the old identifier format. Cost is bounded and mostly engineering time; the risk of skipping it is an unplanned break later, on someone else's schedule.
For engineering: v5.0.3 removes auto-conversion of id to _id for documents and sub-documents. Audit every model, repository, and serializer that assumed implicit mapping; add explicit key mapping and round-trip tests; verify persistence of existing records and any backfill needs. Because this landed in a patch version, pin the dependency and treat future patch bumps as reviewable changes, not automatic merges.
How can I help you explore Laravel packages today?