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.
New Features and Enhancements
- Atlas Search and Vector Search, integration with new methods in the query builder and schema builder
- Laravel Scout support, to use MongoDB Atlas as a search engine.
- An optimized session driver to store sessions in MongoDB
- Rename
Connection::getMongoDB
togetDatabase
for naming consistency.
Compatibility Updates
- Laravel 12 support
- MongoDB Extension 1.21: This release requires to update the mongodb extension to the version 1.21
- Support for MongoDB 4.0 Deprecated: Future versions will require MongoDB 4.2 or later.
- Support for
spatie/laravel-query-builder
v6
Documentation
Documentation for this library may be found in the Laravel MongoDB Manual.
Installation
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: 5.1.1...5.2.0