NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #1092 most downloaded on Packagist
A MongoDB based Eloquent model and Query builder for Laravel
Latest stable
5.12.0
Last release 27 days ago
26 Oct 2026
Release timing varies
gaps range from 8 days to 6 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
174 releases · first in 2013
Drag across the ruler to compare, or tap a release to open it.
This release adds first-class support for MongoDB Queryable Encryption. Encrypted fields are declared once in the connection configuration, and the Mo
This release adds first-class support for MongoDB Queryable Encryption. Encrypted fields are declared once in the connection configuration, and the MongoDB driver encrypts, decrypts and answers queries on them transparently. Eloquent models keep their plain shape: no attribute, property or cast is needed.
'driver_options' => [
'autoEncryption' => [
'keyVaultNamespace' => 'encryption.__keyVault',
'kmsProviders' => [
'local' => ['key' => base64_encode(file_get_contents(storage_path('encryption/master-key.bin')))],
],
'encryptedFieldsMap' => [
'patients' => [
'fields' => [
// `queryType` and the range options are flat, and a bare
// string declares a randomized, non-queryable field.
'ssn' => ['bsonType' => 'string', 'queryType' => 'equality'],
'billing_amount' => ['bsonType' => 'int', 'queryType' => 'range', 'min' => 0, 'max' => 5000, 'sparsity' => 1],
'billing' => 'object',
],
],
],
],
],
The encrypted collection, its metadata collections and indexes, and the missing data keys are created by one command. The same creation is available with Schema::connection('mongodb')->createEncrypted('patients').
php artisan mongodb:encryption:create-collection
php artisan mongodb:encryption:status
Queryable Encryption requires MongoDB 8.0 or later for range queries (equality queries work from 7.0), on a replica set or a sharded cluster, with the Automatic Encryption Shared Library. Queries on encrypted fields cannot be combined with Atlas Search.
--dry-run preview: by @GromNaN in #3607__safeContent__ field from hydrated models and reject writes to it: by @GromNaN in #3652encryptedFieldsMap by namespace before handing it to the driver. The map was keyed by collection name, so automatic encryption ignored it and a write to a mapped collection that the server did not know as encrypted stored the fields in plaintext: by @GromNaN in #3657mongodb:encryption:rewrap-data-keys: by @paulinevos in #3602tlsOptions to ClientEncryption, for a KMS reachable only through a private CA: by @GromNaN in #3606mongodb:encryption:status: by @zigzagdev in #3624Connection API small. Only isAutoEncryptionEnabled() and getClientEncryption() are public, for diagnostics and for encryptExpression(). The rest of the encryption logic stays internal: by @GromNaN in #3660hasTable(), dropIfExists(), getColumns() and getIndexes() now apply the prefix, as Laravel does. The migration repository relies on hasTable(), so with a prefix every migration ran again. An application that calls these methods with the real collection name must pass the unprefixed name. hasCollection() and getCollection() are not Laravel methods and keep taking the real name: by @GromNaN in #3655where methods cannot compile: by @zigzagdev in #3612Attribute mutator: by @GromNaN in #3557MorphTo relations, so morphWith(), morphWithCount() and constrain() are no longer no-ops: by @GromNaN in #3559count(): by @MaddipatlaChetan24 in #3586$where, $function and $accumulator in DatabaseQuery, including nested in filters, projections, let and aggregation stages: by @paulinevos in #3651morphTo type is an Eloquent model before instantiating it, on both the lazy and the eager loading paths: by @paulinevos in #3589Database::selectCollection() with getCollection(): by @zigzagdev in #3630MongoBatchRepositoryTest mock for Laravel 13.32 named arguments: by @GromNaN in #3583AtlasSearchTest: by @MaddipatlaChetan24 in #3582transactionLevel() reflects the active transaction: by @zigzagdev in #3572TransactionTest: by @MaddipatlaChetan24 in #3600loadSum, loadAvg, loadMin and loadMax on relations: by @GromNaN in #3566DatabaseFailedJobProviderTest: by @GromNaN in #3609Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/5.11.0...5.12.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
…CVE-2026-88022
<!-- Release notes generated using configuration in .github/release.yml at 5.x -->
Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/5.10.0...5.11.0
<!-- Release notes generated using configuration in .github/release.yml at 5.x -->
<!-- Release notes generated using configuration in .github/release.yml at 5.x -->
morphOne() using the wrong MorphOne relation class by @zigzagdev in https://github.com/mongodb/laravel-mongodb/pull/3564Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/5.9.1...5.10.0
<!-- Release notes generated using configuration in .github/release.yml at 5.9 -->
<!-- Release notes generated using configuration in .github/release.yml at 5.9 -->
Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/5.9.0...5.9.1
<!-- Release notes generated using configuration in .github/release.yml at 5.x -->
<!-- Release notes generated using configuration in .github/release.yml at 5.x -->
_score) in ScoutEngine by @zigzagdev in https://github.com/mongodb/laravel-mongodb/pull/3534database-info Boost tool as alternative to database-schema by @paulinevos in https://github.com/mongodb/laravel-mongodb/pull/3544stdClass values in prepareFieldsForQuery by @zigzagdev in https://github.com/mongodb/laravel-mongodb/pull/3525MongoLock lottery never pruned expired locks by @zigzagdev in https://github.com/mongodb/laravel-mongodb/pull/3533Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/5.8.2...5.9.0
<!-- Release notes generated using configuration in .github/release.yml at 5.8 -->
<!-- Release notes generated using configuration in .github/release.yml at 5.8 -->
getCastType from mutating model-wide dateFormat by @zigzagdev in https://github.com/mongodb/laravel-mongodb/pull/3514Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/5.8.1...5.8.2
<!-- Release notes generated using configuration in .github/release.yml at 5.8 -->
<!-- Release notes generated using configuration in .github/release.yml at 5.8 -->
Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/5.8.0...5.8.1
PHPORM-305 Deprecate "array" cast storing as JSON-encoded string by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/3495
<!-- Release notes generated using configuration in .github/release.yml at 5.x -->
originalIsEquivalent method by @guram-vashakidze in https://github.com/mongodb/laravel-mongodb/pull/3439EmbedsRelations::embedsMany and EmbedsRelations::embedsOne public by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/2588increment & decrement on embedded models to delegate to Model::incrementOrDecrement() by @zigzagdev in https://github.com/mongodb/laravel-mongodb/pull/3510MongoStore::unserialize() for empty arrays and objects by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/3517Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/5.7.1...5.8.0
<!-- Release notes generated using configuration in .github/release.yml at 5.7 -->
<!-- Release notes generated using configuration in .github/release.yml at 5.7 -->
morphedByMany() by @bskl in https://github.com/mongodb/laravel-mongodb/pull/3491MongoBatchRepository::rollBack() throwing when no active session by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/3492Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/5.7.0...5.7.1
<!-- Release notes generated using configuration in .github/release.yml at 5.x -->
<!-- Release notes generated using configuration in .github/release.yml at 5.x -->
Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/5.6.0...5.7.0
This release fixes compatibility with Laravel 12.51.
This release fixes compatibility with Laravel 12.51.
DatabaseTransactionsManager in ManagesTransactions trait by @paulinevos in https://github.com/mongodb/laravel-mongodb/pull/3443delete() TypeError message to reference EloquentCollection by @zigzagdev in https://github.com/mongodb/laravel-mongodb/pull/3457Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/5.5.0...5.6.0
PHPORM-264: Deprecate Mongo soft deletes trait by @paulinevos in https://github.com/mongodb/laravel-mongodb/pull/3408
<!-- Release notes generated using configuration in .github/release.yml at 5.x -->
db:table command by @paulinevos in https://github.com/mongodb/laravel-mongodb/pull/3394Builder::raw() by @paulinevos in https://github.com/mongodb/laravel-mongodb/pull/3395QueryBuilder multiply and divide support by @faissaloux in https://github.com/mongodb/laravel-mongodb/pull/3373DocumentModel by @paulinevos in https://github.com/mongodb/laravel-mongodb/pull/3417Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/5.4.3...5.5.0
<!-- Release notes generated using configuration in .github/release.yml at 5.4 -->
<!-- Release notes generated using configuration in .github/release.yml at 5.4 -->
updated_at with $set by @guram-vashakidze in https://github.com/mongodb/laravel-mongodb/pull/3433Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/5.4.2...5.4.3
<!-- Release notes generated using configuration in .github/release.yml at 5.4 -->
<!-- Release notes generated using configuration in .github/release.yml at 5.4 -->
Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/5.4.1...5.4.2
Remove usage of deprecated getMongoDB method in tests by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/3367
<!-- Release notes generated using configuration in .github/release.yml at 5.4 -->
assert in DatabaseSessionHandler::read() by @tonivega in https://github.com/mongodb/laravel-mongodb/pull/3368getMongoDB method in tests by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/3367Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/5.4.0...5.4.1
This release fixes the db:show and db:tables database introspection commands when using views. The user id, IP address and user agent are now saved by
This release fixes the db:show and db:tables database introspection commands when using views.
The user id, IP address and user agent are now saved by the `mongodb' session driver if available.
getViews and categorize table types by @masterbater in https://github.com/mongodb/laravel-mongodb/pull/3327Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/5.3.1...5.4.0
<!-- Release notes generated using configuration in .github/release.yml at 5.3 -->
<!-- Release notes generated using configuration in .github/release.yml at 5.3 -->
.id field path to ._id by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/3353Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/5.3.0...5.3.1
<!-- Release notes generated using configuration in .github/release.yml at 5.x -->
<!-- Release notes generated using configuration in .github/release.yml at 5.x -->
id to _id field rename in embedded documents by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/3332Date::use(CarbonImmutable::class) is set by @saineshmamgain in https://github.com/mongodb/laravel-mongodb/pull/3342Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/5.2.2...5.3.0
<!-- Release notes generated using configuration in .github/release.yml at 5.2 -->
<!-- Release notes generated using configuration in .github/release.yml at 5.2 -->
Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/5.2.1...5.2.2
<!-- Release notes generated using configuration in .github/release.yml at 5.2 -->
<!-- Release notes generated using configuration in .github/release.yml at 5.2 -->
_id check when updating a model by @itodor in https://github.com/mongodb/laravel-mongodb/pull/3329Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/5.2.0...5.2.1
Support for MongoDB 4.0 Deprecated: Future versions will require MongoDB 4.2 or later.
The MongoDB team is pleased to announce the release of version 5.2.0 of the Laravel MongoDB Library.
This release requires an upgrade of the mongodb extesion to version 1.21 and the mongodb/mongodb library to version 1.21.
Connection::getMongoDB to getDatabase for naming consistency.spatie/laravel-query-builder v6Documentation for this library may be found in the Laravel MongoDB Manual.
This library may be installed or upgraded with:
composer require mongodb/laravel-mongodb:^5.2.0
Installation instructions for the mongodb extension may be found in the PHP.net documentation.
Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/5.1.1...5.2.0
<!-- Release notes generated using configuration in .github/release.yml at 5.1 -->
<!-- Release notes generated using configuration in .github/release.yml at 5.1 -->
Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/5.1.0...5.1.1
<!-- Release notes generated using configuration in .github/release.yml at 5.1.0 -->
<!-- Release notes generated using configuration in .github/release.yml at 5.1.0 -->
_id and UTCDateTime in results of Model::raw() before hydratation by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/3152_id to id in Schema::getColumns() by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/3160-> to dot . by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/3170Query\Builder::pluck() with ObjectId as key by @fuyuki0511 in https://github.com/mongodb/laravel-mongodb/pull/3169Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/5.0.2...5.1.0
<!-- Release notes generated using configuration in .github/release.yml at 5.0.2 -->
<!-- Release notes generated using configuration in .github/release.yml at 5.0.2 -->
Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/5.0.1...5.0.2
<!-- Release notes generated using configuration in .github/release.yml at 5.0 -->
<!-- Release notes generated using configuration in .github/release.yml at 5.0 -->
Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/5.0.0...5.0.1
The PHP team is happy to announce that version 5.0.0 of the MongoDB integration for Laravel is now available. Feedbacks are welcome in this discussion
The PHP team is happy to announce that version 5.0.0 of the MongoDB integration for Laravel is now available. Feedbacks are welcome in this discussion.
id is always alias to _id in MongoDB. You can remove the protected $primaryKey = '_id' in model classes. Replace all $model->_id with $model->id.DateTimeInterface objects (including Carbon) are converted to MongoDB UTCDateTime by the query builder in queries, inserted and updated data. In results, MongoDB UTCDateTime objects are automatically converted to Carbon date with the default timezone. Some Eloquent cast my no longer be required.stdClass instead of array. Replace code like $item['name'] with $item->name.$collection is replaced by $table to customize the name of an Eloquent Model.Auth\PasswordResetServiceProvider, MongoDBQueueServiceProvider and Queue\Failed\MongoFailedJobProvider are removed. Remove them from your application. The MongoDB connection is compatible with the Laravel classesMongoDB\Laravel\Collection is replaced by MongoDB\Collection, and query are logged using MongoDB Monitoring Events.id an alias for _id by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/3040Blueprint::background() by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/3132Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/4.8.0...5.0.0
The PHP team is happy to announce that version 5.0.0-RC1 of the MongoDB integration for Laravel is now available. This is a release candidate for whic
The PHP team is happy to announce that version 5.0.0-RC1 of the MongoDB integration for Laravel is now available. This is a release candidate for which we'd like to receive your feedback in the discussion.
id is always alias to _id in MongoDB. You can remove the protected $primaryKey = '_id' in model classes. Replace all $model->_id with $model->id.DateTimeInterface objects (including Carbon) are converted to MongoDB UTCDateTime by the query builder in queries, inserted and updated data. In results, MongoDB UTCDateTime objects are automatically converted to Carbon date with the default timezone. Some Eloquent cast my no longer be required.stdClass instead of array. Replace code like $item['name'] with $item->name.$collection is replaced by $table to customize the name of an Eloquent Model.Auth\PasswordResetServiceProvider, MongoDBQueueServiceProvider and Queue\Failed\MongoFailedJobProvider are removed. Remove them from your application. The MongoDB connection is compatible with the Laravel classesMongoDB\Laravel\Connection is replaced by MongoDB\Connection, and query are logged using MongoDB Monitoring Events.id an alias for _id by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/3040Blueprint::background() by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/3132Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/4.8.0...5.0.0-rc1
This is a maintenance release to enable compatibility with the version 2.0.0 of the MongoDB extension and library.
This is a maintenance release to enable compatibility with the version 2.0.0 of the MongoDB extension and library.
Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/4.8.1...4.9.0
PHPORM-263 Fix deprecation message for collection/table config in MongoDBQueueServiceProvider by @GromNaN in https://github.com/mongodb/laravel-mongod…
<!-- Release notes generated using configuration in .github/release.yml at 4.8 -->
Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/4.8.0...4.8.1
PHPORM-219 Deprecate Connection::collection() and Schema::collection() by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/3062
<!-- Release notes generated using configuration in .github/release.yml at 4.8 -->
Connection::collection() and Schema::collection() by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/3062$collection property to customize the name by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/3064Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/4.7.1...4.8.0
<!-- Release notes generated using configuration in .github/release.yml at 4.7 -->
<!-- Release notes generated using configuration in .github/release.yml at 4.7 -->
Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/4.7.1...4.7.2
<!-- Release notes generated using configuration in .github/release.yml at 4.7 -->
<!-- Release notes generated using configuration in .github/release.yml at 4.7 -->
BusServiceProvider when BatchRepository is built by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/3071Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/4.7.0...4.7.1
<!-- Release notes generated using configuration in .github/release.yml at 4.7.0 -->
<!-- Release notes generated using configuration in .github/release.yml at 4.7.0 -->
This release improves the compatibility with introspection features provided by Laravel (commands db:show and db:table) and the package barryvdh/laravel-ide-helper.
Connection::getServerVersion() by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/3043getTables() by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/3044getColumns() and getIndexes() by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/3045hasColumn() and hasColumns() method by @Alex-Belyi in https://github.com/mongodb/laravel-mongodb/pull/3001Query\Builder::upsert() by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/3053Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/4.6.0...4.7.0
Add DocumentModel trait to use any 3rd party model with MongoDB @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/2580
DocumentModel trait to use any 3rd party model with MongoDB @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/2580HasSchemaVersion trait to help implementing the schema versioning pattern @florianJacques in #3021Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/4.5.0...4.6.0
<!-- Release notes generated using configuration in .github/release.yml at 4.5 -->
<!-- Release notes generated using configuration in .github/release.yml at 4.5 -->
Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/4.4.1...4.5.0
<!-- Release notes generated using configuration in .github/release.yml at 4.4 -->
<!-- Release notes generated using configuration in .github/release.yml at 4.4 -->
Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/4.4.0...4.4.1
PHPORM-82 Support prefix for collection names by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/2930
_id: null to let it be autogenerated by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/2969mongodb driver for batch by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/2904@mixin on Model class by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/2981Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/4.3.0...4.4.0
[fix] Prevent exception when connection is closed by @SanderMuller in https://github.com/mongodb/laravel-mongodb/pull/2967
@mixin on Model class by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/2981Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/4.3.0...4.3.1
The PHP team is happy to announce that version 4.3.0 of the MongoDB integration for Laravel is now available.
The PHP team is happy to announce that version 4.3.0 of the MongoDB integration for Laravel is now available.
Release Highlights
mongodb cache and lock drivers by @GromNaN in #2877artisan query:retry command by @GromNaN in #2838Documentation
Documentation for this library may be found one the Readme.
Installation
This library may be installed or upgraded with:
composer require mongodb/laravel-mongodb:4.3.0
Installation instructions for the mongodb extension may be found in the PHP.net documentation.
Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/4.2.2...4.3.0
The PHP team is happy to announce that version 4.2.2 of the MongoDB integration for Laravel is now available.
The PHP team is happy to announce that version 4.2.2 of the MongoDB integration for Laravel is now available.
Release Highlights
FindAndModifyCommandSubscriber, used by firstOrCreate by @wivaku in #2913Documentation
Documentation for this library may be found one the Readme.
Installation
This library may be installed or upgraded with:
composer require mongodb/laravel-mongodb:4.2.2
Installation instructions for the mongodb extension may be found in the PHP.net documentation.
Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/4.2.1...4.2.2
The PHP team is happy to announce that version 4.2.1 of the MongoDB integration for Laravel is now available.
The PHP team is happy to announce that version 4.2.1 of the MongoDB integration for Laravel is now available.
Release Highlights
Model::createOrFirst() by @GromNaN in #2905Documentation
Documentation for this library may be found one the Readme.
Installation
This library may be installed or upgraded with:
composer require mongodb/laravel-mongodb:4.2.1
Installation instructions for the mongodb extension may be found in the PHP.net documentation.
Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/4.2.0...4.2.1
The PHP team is happy to announce that version 4.2.0 of the MongoDB integration for Laravel is now available.
The PHP team is happy to announce that version 4.2.0 of the MongoDB integration for Laravel is now available.
Release Highlights
Documentation
Documentation for this library may be found one the Readme.
Installation
This library may be installed or upgraded with:
composer require mongodb/laravel-mongodb:4.2.0
Installation instructions for the mongodb extension may be found in the PHP.net documentation.
Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/4.1.3...4.2.0
The PHP team is happy to announce that version 4.1.3 of the MongoDB integration for Laravel is now available.
The PHP team is happy to announce that version 4.1.3 of the MongoDB integration for Laravel is now available.
Release Highlights
null in datetime fields and reset time in date field with custom format by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/2741Documentation
Documentation for this library may be found one the Readme.
Installation
This library may be installed or upgraded with:
composer require mongodb/laravel-mongodb:4.1.3
Installation instructions for the mongodb extension may be found in the PHP.net documentation.
Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/4.1.2...4.1.3
The PHP team is happy to announce that version 4.1.2 of the MongoDB integration for Laravel is now available.
The PHP team is happy to announce that version 4.1.2 of the MongoDB integration for Laravel is now available.
Release Highlights
Query\Builder::dump and dd methods to dump MongoDB query by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/2727 and https://github.com/mongodb/laravel-mongodb/pull/2730Documentation
Documentation for this library may be found one the Readme.
Installation
This library may be installed or upgraded with:
composer require mongodb/laravel-mongodb:4.1.2
Installation instructions for the mongodb extension may be found in the PHP.net documentation.
Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/4.1.1...4.1.2
The PHP team is happy to announce that version 4.1.1 of the MongoDB integration for Laravel is now available.
The PHP team is happy to announce that version 4.1.1 of the MongoDB integration for Laravel is now available.
Release Highlights
Model::$unset when a model is saved or refreshed by @richardfila in https://github.com/mongodb/laravel-mongodb/pull/2709Documentation
Documentation for this library may be found in the Readme.
Installation
This library may be installed or upgraded with:
composer require mongodb/laravel-mongodb:4.1.1
Installation instructions for the mongodb extension may be found in the PHP.net documentation.
New Contributors
Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/4.1.0...4.1.1
The PHP team is happy to announce that version 4.1.0 of the MongoDB integration for Laravel is now available.
The PHP team is happy to announce that version 4.1.0 of the MongoDB integration for Laravel is now available.
Connection::ping() is added to check the connection to the server (#2677) by @hans-thomasgroupBy queries is supported (#2672) by @GromNaNA complete list of resolved issues in this release may be found in the changelog.
Documentation for this library may be found in the Readme.
This library may be installed or upgraded with:
composer require mongodb/laravel-mongodb:4.1.0
Installation instructions for the mongodb extension may be found in the PHP.net documentation.
Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/4.0.2...4.1.0
The PHP team is happy to announce that version 4.0.3 of the MongoDB integration for Laravel is now available.
The PHP team is happy to announce that version 4.0.3 of the MongoDB integration for Laravel is now available.
Release Highlights
Model::$unset when a model is saved or refreshed by @richardfila in https://github.com/mongodb/laravel-mongodb/pull/2709Documentation
Documentation for this library may be found in the Readme.
Installation
This library may be installed or upgraded with:
composer require mongodb/laravel-mongodb:4.0.3
Installation instructions for the mongodb extension may be found in the PHP.net documentation.
New Contributors
Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/4.0.2...v4.0.3
The PHP team is happy to announce that version 4.0.2 of the MongoDB integration for Laravel is now available.
The PHP team is happy to announce that version 4.0.2 of the MongoDB integration for Laravel is now available.
Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/4.0.0...4.0.2
Documentation for this library may be found in the Readme.
This library may be installed or upgraded with:
composer require mongodb/laravel-mongodb:4.0.2
Installation instructions for the mongodb extension may be found in the PHP.net documentation.
Remove call to deprecated Collection::count for countDocuments 4514964 by @GromNaN.
The MongoDB PHP team is happy to announce that version 4.0.0 of the MongoDB integration for Laravel 10 is now available.
mongodb/laravel-mongodbMongoDB\LaravelObjectId and UUID instances 5105553 by @alcaeus.Query\Builder::toMql() to simplify comprehensive query tests ae3e0d5 by @GromNaN.Query\Builder::whereNot to use MongoDB $nor operator e045fab by @GromNaN.Query\Builder::whereBetween to accept Carbon\Period object f729baa by @GromNaN.Query\Builder methods e1a83f4 by @GromNaN.Query\Builder::orderBy() is used with invalid direction edd0871 by @GromNaN.Query\Builder::push() is used incorrectly 19cf7a2 by @GromNaN.Query\Builder::$paginating e045fab by @GromNaN.Collection::count for countDocuments 4514964 by @GromNaN.$ in Query\Builder::orWhere 0fb83af by @GromNaN.Query\Builder::whereAll($column, $values). Use Query\Builder::where($column, 'all', $values) instead. 1d74dc3 by @GromNaN.% and _ in like expression ea89e86 by @GromNaN.Query\Builder::__constructor to match the parent class #2570 by @GromNaN.whereDate, whereDay, whereMonth, whereYear, whereTime to use MongoDB operators #2376 by @Davpyu and @GromNaN.Model::unset() does not persist the change. Call Model::save() to persist the change #2578 by @GromNaN.Query\Builder::limit(1)->delete() #2591 by @GromNaNMongoDB\Laravel\Eloquent\MassPrunable to replace the Eloquent trait on MongoDB models #2598 by @GromNaNDocumentation for this library may be found in the Readme.
This library may be installed or upgraded with:
composer require mongodb/laravel-mongodb:^4.0.0
Installation instructions for the mongodb extension may be found in the PHP.net documentation.
Remove call to deprecated Collection::count for countDocuments #18 by @GromNaN.
The MongoDB PHP team is happy to announce that version 4.0.0-rc1 of the MongoDB integration for Laravel is now available.
This is a release candidate for the upcoming 4.0.0 release. Please test it and report issues as soon as possible.
Release Highlights
mongodb/laravel-mongodbMongoDB\LaravelModel::toArray() by @jeromegamez in #2522ObjectId and UUID instances #1 by @alcaeus.Query\Builder::toMql() to simplify comprehensive query tests #6 by @GromNaN.Query\Builder::whereNot to use MongoDB $not operator #13 by @GromNaN.Query\Builder::whereBetween to accept Carbon\Period object #10 by @GromNaN.Query\Builder methods #9 by @GromNaN.Query\Builder::orderBy() is used with invalid direction #7 by @GromNaN.Query\Builder::push() is used incorrectly #5 by @GromNaN.Query\Builder::$paginating #15 by @GromNaN.Collection::count for countDocuments #18 by @GromNaN.$ in Query\Builder::orWhere #20 by @GromNaN.Query\Builder::whereAll($column, $values). Use Query\Builder::where($column, 'all', $values) instead. #16 by @GromNaN.% and _ in like expression #17 by @GromNaN.Query\Builder::__constructor to match the parent class #26 by @GromNaN.whereDate, whereDay, whereMonth, whereYear, whereTime to use MongoDB operators#2570 by @Davpyu and @GromNaN.Model::unset() does not persist the change. Call Model::save() to persist the change#2578 by @GromNaN.failed_at as ISODate #2607 by @BehroozBvkDocumentation
Documentation for this library may be found in the Readme.
Installation
This library may be installed or upgraded with:
composer require mongodb/laravel-mongodb:4.0.0-rc1
Installation instructions for the mongodb extension may be found in the PHP.net documentation.
Nothing published for this version
Remove call to deprecated Collection::count for countDocuments #18 by @GromNaN.
This is a pre-version with Laravel 10.x support.
Please test on your project and report any issue.
Package is renamed mongodb/laravel-mongodb and namespace changed to MongoDB\Laravel.
mongodb/laravel-mongodbMongoDB\LaravelModel::toArray() by @jeromegamez in https://github.com/mongodb/laravel-mongodb/pull/2522ObjectId and UUID instances #1 by @alcaeus.Query\Builder::toMql() to simplify comprehensive query tests #6 by @GromNaN.Query\Builder::whereNot to use MongoDB $not operator #13 by @GromNaN.Query\Builder::whereBetween to accept Carbon\Period object #10 by @GromNaN.Query\Builder methods #9 by @GromNaN.Query\Builder::orderBy() is used with invalid direction #7 by @GromNaN.Query\Builder::push() is used incorrectly #5 by @GromNaN.Query\Builder::$paginating #15 by @GromNaN.Collection::count for countDocuments #18 by @GromNaN.$ in Query\Builder::orWhere #20 by @GromNaN.Query\Builder::whereAll($column, $values). Use Query\Builder::where($column, 'all', $values) instead. #16 by @GromNaN.% and _ in like expression #17 by @GromNaN.Query\Builder::__constructor to match the parent class #26 by @GromNaN.whereDate, whereDay, whereMonth, whereYear, whereTime to use MongoDB operators #2570 by @Davpyu and @GromNaN.Model::unset() does not persist the change. Call Model::save() to persist the change #2578 by @GromNaN.Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/v3.9.5...v4.0.0-ALPHA2
Note: an old tag4.0.0-alpha.1 was created 3 years ago and should not be used.
Use the correct package name when looking up the version by @alcaeus in https://github.com/jenssegers/laravel-mongodb/pull/2511
Full Changelog: https://github.com/jenssegers/laravel-mongodb/compare/v3.9.4...v3.9.5
Report package version when establishing connection by @alcaeus in https://github.com/jenssegers/laravel-mongodb/pull/2507
Added:
Full Changelog: https://github.com/jenssegers/laravel-mongodb/compare/3.9.3...v3.9.4
https://github.com/jenssegers/laravel-mongodb/pull/2465 Add transaction support by @alcaeus
Added:
Fixed:
Add single word name mutators #2438 by @RosemaryOrchard & @mrneatly.
Added
Fixed
Backport support for cursor pagination #2358 by @Jeroenwv.
Add support for Laravel 9 #2344 by @divine
For Laravel related changes, please check https://laravel.com/docs/9.x/upgrade
The PHP team is happy to announce that version 3.8.5 of the MongoDB integration for Laravel is now available.
The PHP team is happy to announce that version 3.8.5 of the MongoDB integration for Laravel is now available.
Release Highlights
Installation
This library may be installed or upgraded with:
composer require mongodb/laravel-mongodb:3.8.5
Installation instructions for the mongodb extension may be found in the PHP.net documentation.
Full Changelog: https://github.com/mongodb/laravel-mongodb/compare/v3.8.5...v3.8.6
Support for cursor pagination #2358 by @Jeroenwv.
One column per quarter.