mongodb/laravel-mongodb
A MongoDB based Eloquent model and Query builder for Laravel
5.9.1
9.2M downloads/mo
#1121 most downloaded on Packagist
mongodb/laravel-mongodb
What this package is like to depend on
Last release 26 days ago
28 Jul 2026
Release timing varies
gaps range from 8 days to 6 months
Rarely documented
notes for 10 of 161 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
171 releases · first in 2013
8 releases in the last 12 months
see the full history below
Release timeline
169 releases · Aug 2013 to Jul 2026Releases
latest 60 of 171-
5.9.128 Jul 2026 -
5.9.027 Jul 2026Release notes
Open source →What's Changed
New Features
- PHPORM-458: Support auto-embedding by @paulinevos in #3531
- Drop support for Laravel 10, 11 and PHP 8.1 by @GromNaN in #3537
- feat(scout): support sorting by relevance score (
_score) in ScoutEngine by @zigzagdev in #3534 - PHPLARA-73 Make id/_id column aliasing overridable via Grammar by @GromNaN in #3539
- PHPLARA-247: Add plugin install suggestion to Boost guidelines by @paulinevos in #3545
- PHPLARA-253: Create
database-infoBoost tool as alternative todatabase-schemaby @paulinevos in #3544 - PHPLARA-81 Add AsBsonDocument and AsBsonArray casts by @GromNaN in #3540
- PHPLARA-100: Create agent skills by @paulinevos in #3546
- PHPLARA-251: Create database query tool for Boost by @paulinevos in #3548
- Move agent skill to Laravel Boost convention by @pushpak1300 in #3550
Fixed
- Fix: Recurse into
stdClassvalues inprepareFieldsForQueryby @zigzagdev in #3525 - fix:
MongoLocklottery never pruned expired locks by @zigzagdev in #3533 - PHPORM-497: Fix failing PHPStan static analysis action by @GromNaN in #3529
- Fix groupBy() building an invalid $group stage when _id is selected by @ZayanKhan-12 in #3553
Other Changes
- PHPORM-486: Explicitly do not support base vector search methods by @paulinevos in #3535
New Contributors
- @ZayanKhan-12 made their first contribution in #3553
- @pushpak1300 made their first contribution in #3550
Full Changelog: 5.8.2...5.9.0
-
5.8.217 Jun 2026Release notes
Open source →What's Changed
Bug
- PHPORM-492 Fix PHPDoc return and param types for raw() methods by @GromNaN in #3526
- Fix: prevent
getCastTypefrom mutating model-wide dateFormat by @zigzagdev in #3514
Full Changelog: 5.8.1...5.8.2
-
5.8.110 Jun 2026Release notes
Open source →What's Changed
Fixed
- PHPORM-495 Fix sort direction enum use by @alcaeus in #3519
Full Changelog: 5.8.0...5.8.1
-
5.8.008 Jun 2026Release notes
Open source →What's Changed
New Features
- Move field aliasing methods to Grammar class as public overridable API by @dercoder in #3476
- PHPORM-305 Deprecate "array" cast storing as JSON-encoded string by @GromNaN in #3495
- Add advanced type definition for Atlas Search Indexes by @GromNaN in #3234
- PHPORM-491 Support \SortDirection enum in Query\Builder::orderBy() by @babaduk47 in #3507
Fixed
- Update generics on hybrid relations by @bskl in #3489
- Fix MongoStore increment behavior for expired cache entries by @zigzagdev in #3467
- Fix incorrect behaviour when comparing castable attributes in
originalIsEquivalentmethod by @guram-vashakidze in #3439 - Make
EmbedsRelations::embedsManyandEmbedsRelations::embedsOnepublic by @GromNaN in #2588 - fix: Sync correct timestamps offset by @zigzagdev in #3509
- Fix:
increment&decrementon embedded models to delegate toModel::incrementOrDecrement()by @zigzagdev in #3510 - PHPORM-494 Fix
MongoStore::unserialize()for empty arrays and objects by @GromNaN in #3517
New Contributors
- @dercoder made their first contribution in #3476
- @babaduk47 made their first contribution in #3507
Full Changelog: 5.7.1...5.8.0
-
5.7.115 Apr 2026Release notes
Open source →What's Changed
Fixed
- Fix relation name passed to
morphedByMany()by @bskl in #3491 - PHPORM-479 Fix
MongoBatchRepository::rollBack()throwing when no active session by @GromNaN in #3492 - Fix: Sync cancellation timestamps by @zigzagdev in #3496
Other Changes
Full Changelog: 5.7.0...5.7.1
- Fix relation name passed to
-
5.7.020 Mar 2026Release notes
Open source →What's Changed
New Features
- Laravel 13.x Compatibility by @laravel-shift in #3482
New Contributors
- @laravel-shift made their first contribution in #3482
Full Changelog: 5.6.0...5.7.0
-
5.6.012 Feb 2026Release notes
Open source →This release fixes compatibility with Laravel 12.51.
What's Changed
Fixed
- PHPORM-373 Use
DatabaseTransactionsManagerinManagesTransactionstrait by @paulinevos in #3443 - PHPORM-432 Wait for search indexes to be dropped before creating new one in tests by @GromNaN in #3460
- ScoutEngine: correct
delete()TypeError message to reference EloquentCollection by @zigzagdev in #3457 - Fix test that randomly crashes by @GromNaN in #3464
- Fix Builder methods declaration for compatibility with Laravel 12.51 by @GromNaN in #3479
Other Changes
- Improve change log categories by @paulinevos in #3442
- Bump actions/labeler from 5 to 6 by @dependabot[bot] in #3445
- Remove explicit dependency to symfony/http-kernel as it's not used directly by @GromNaN in #3446
- Bump mongodb-labs/drivers-github-tools from 2 to 3 by @dependabot[bot] in #3452
- Bump github/codeql-action from 3 to 4 by @dependabot[bot] in #3455
- Bump actions/checkout from 5 to 6 by @dependabot[bot] in #3458
- PHPORM-418 Test with PHP 8.5 and reduce test matrix by @GromNaN in #3459
- Consolidate repetitive model instantiations across tests by @zigzagdev in #3416
- Bump actions/cache from 4 to 5 by @dependabot[bot] in #3468
- Drop docs folder by @alcaeus in #3473
- Fix chunked order query bug by @paulinevos in #3480
New Contributors
- @zigzagdev made their first contribution in #3457
Full Changelog: 5.5.0...5.6.0
- PHPORM-373 Use
-
5.5.012 Aug 2025Release notes
Open source →What's Changed
Fixed
- PHPORM-330 Fix: Convert query duration time to milliseconds by @AmirRezaM75 in #3374
- PHPORM-331 Fix test on job payload by @GromNaN in #3375
- Fix database name extraction from DSN containing a CA file path by @fergusean in #3381
- [5.x] Replaced a too strict assertion in DatabaseSessionHandler.php that prevented to use the sessions at all with a more simple sanity check. Test already failed on that, now they pass. by @tonivega in #3366
Other Changes
- Validate PSR namespaces in CI by @GromNaN in #3363
- Bump ramsey/composer-install from 3.1.0 to 3.1.1 by @dependabot[bot] in #3393
- PHPORM-326 Add collation to
db:tablecommand by @paulinevos in #3394 - Add conditional return type to
Builder::raw()by @paulinevos in #3395 - Support adding schema validation by @paulinevos in #3397
QueryBuildermultiply and divide support by @faissaloux in #3373- Bump PHP to 8.2 in Docker test container by @paulinevos in #3399
- Bump stefanzweifel/git-auto-commit-action from 5 to 6 by @dependabot[bot] in #3409
- Limit CI workflows to supported branches by @alcaeus in #3411
- Improve error handling on unsupported hybrid queries by @paulinevos in #3404
- PHPORM-264: Deprecate Mongo soft deletes trait by @paulinevos in #3408
- Add Mongo builder mixin to
DocumentModelby @paulinevos in #3417 - PHPORM-146: Add override attribute everywhere by @paulinevos in #3412
- Replace extra substr() call by @jmikola in #3430
- Bump actions/checkout from 4 to 5 by @dependabot[bot] in #3440
Docs changes
- DOCSP-50472: schema validation by @rustagir in #3400
- DOCSP-50781: Update SoftDeletes references by @mcmorisi in #3413
- DOCSP-50607: multiply/divide QB methods by @rustagir in #3403
- DOCSP-50960: Install PHP ext with pie by @norareidy in #3419
New Contributors
- @tonivega made their first contribution in #3366
- @AmirRezaM75 made their first contribution in #3374
- @fergusean made their first contribution in #3381
- @paulinevos made their first contribution in #3394
- @faissaloux made their first contribution in #3373
Full Changelog: 5.4.3...5.5.0
-
5.4.330 Jul 2025Release notes
Open source →What's Changed
Fixed
- Fix overwriting
updated_atwith$setby @guram-vashakidze in #3433
New Contributors
- @guram-vashakidze made their first contribution in #3433
Full Changelog: 5.4.2...5.4.3
- Fix overwriting
-
5.4.221 Jul 2025Nothing published for this version
-
5.4.122 Apr 2025Nothing published for this version
-
5.4.018 Apr 2025Nothing published for this version
-
5.3.115 Apr 2025Nothing published for this version
-
5.3.010 Apr 2025Nothing published for this version
-
5.2.208 Apr 2025Nothing published for this version
-
5.2.101 Apr 2025Nothing published for this version
-
5.2.003 Mar 2025Nothing published for this version
-
5.1.106 Jan 2025Nothing published for this version
-
5.1.007 Oct 2024Nothing published for this version
-
5.0.217 Sep 2024Nothing published for this version
-
5.0.113 Sep 2024Nothing published for this version
-
5.0.012 Sep 2024Nothing published for this version
-
5.0.0-rc106 Sep 2024 pre-releaseNothing published for this version
-
4.9.014 Apr 2025Nothing published for this version
-
4.8.120 Nov 2024Nothing published for this version
-
4.8.027 Aug 2024Nothing published for this version
-
4.7.226 Aug 2024Nothing published for this version
-
4.7.125 Jul 2024Nothing published for this version
-
4.7.019 Jul 2024Nothing published for this version
-
4.6.009 Jul 2024Nothing published for this version
-
4.5.020 Jun 2024Nothing published for this version
-
4.4.113 Jun 2024Nothing published for this version
-
4.4.031 May 2024Nothing published for this version
-
4.3.131 May 2024Nothing published for this version
-
4.3.026 Apr 2024Nothing published for this version
-
4.2.225 Apr 2024Nothing published for this version
-
4.2.125 Apr 2024Nothing published for this version
-
4.2.014 Mar 2024Nothing published for this version
-
4.1.305 Mar 2024Nothing published for this version
-
4.1.222 Feb 2024Nothing published for this version
-
4.1.117 Jan 2024Nothing published for this version
-
4.1.014 Dec 2023Nothing published for this version
-
4.0.317 Jan 2024Nothing published for this version
-
4.0.202 Nov 2023Nothing published for this version
-
4.0.028 Sep 2023Nothing published for this version
-
4.0.0-rc113 Sep 2023 pre-releaseNothing published for this version
-
4.0.0-alpha.110 Mar 2020 pre-releaseNothing published for this version
-
v4.0.0-ALPHA231 Aug 2023 pre-releaseNothing published for this version
-
v3.9.516 Feb 2023Nothing published for this version
-
v3.9.410 Feb 2023Nothing published for this version
-
3.9.316 Jan 2023Nothing published for this version
-
v3.9.201 Sep 2022Nothing published for this version
-
v3.9.129 Jun 2022Nothing published for this version
-
v3.9.017 Feb 2022Nothing published for this version
-
v3.8.603 May 2024Nothing published for this version
-
v3.8.514 Jul 2022Nothing published for this version
-
3.8.427 May 2021Nothing published for this version
-
v3.8.321 Feb 2021Nothing published for this version
-
v3.8.218 Dec 2020Nothing published for this version