A MongoDB based Eloquent model and Query builder for Laravel (Moloquent)
A MongoDB based Eloquent model and Query builder for Laravel (Moloquent)
This package adds functionalities to the Eloquent model and Query builder for MongoDB, using the original Laravel API. This library extends the original Laravel classes, so it uses exactly the same methods.
This package was renamed to mongodb/laravel-mongodb because of a transfer of ownership to MongoDB, Inc.
It is compatible with Laravel 10.x. For older versions of Laravel, please refer to the
old versions.
Releases are created automatically and the resulting release tag is signed using
the PHP team's GPG key. To verify the
tag signature, download the key and import it using gpg:
gpg --import php-driver.ascThen, in a local clone, verify the signature of a given tag (e.g. 4.4.0):
git show --show-signature 4.4.0[!NOTE] Composer does not support verifying signatures as part of its installation process.
Think you’ve found a bug in the library? Want to see a new feature? Please open a case in our issue management tool, JIRA:
Note: All reported issues in JIRA project are public.
For general questions and support requests, please use one of MongoDB's Technical Support channels.
If you've identified a security vulnerability in a driver or any other MongoDB project, please report it according to the instructions in Create a Vulnerability Report.
Development is tracked in the PHPLARA project in MongoDB's JIRA. Documentation for contributing to this project may be found in CONTRIBUTING.md.
[Feature Request] Queryable Encryption or CSFLE
has() / whereHas() fails when custom relationship keys are numeric strings
Eager loading MorphTo relationships with withTrashed() doesn't include soft-deleted models
In-memory model hydration bug masks id after Model::create()
Configuration for MongoDB Query Logging
Stop auto-casting string to & from ObjectId
Transaction level not working when use closure
whereHas does not work with ObjectId relations
trigger_error directly in file causes unpredictable system failure
DB::enableQueryLog not working when using DatabaseMigrations