mongodb/laravel-mongodb
A MongoDB based Eloquent model and Query builder for Laravel
Installs: 5 834 663
Dependents: 75
Suggesters: 7
Security: 0
Stars: 7 094
Watchers: 168
Forks: 1 446
pkg:composer/mongodb/laravel-mongodb
Requires
- php: ^8.1
- composer-runtime-api: ^2.0.0
- ext-mongodb: ^1.21|^2
- illuminate/cache: ^10.36|^11|^12
- illuminate/container: ^10.0|^11|^12
- illuminate/database: ^10.30|^11|^12
- illuminate/events: ^10.0|^11|^12
- illuminate/support: ^10.0|^11|^12
- mongodb/mongodb: ^1.21|^2
- symfony/http-foundation: ^6.4|^7
Requires (Dev)
- doctrine/coding-standard: 12.0.x-dev
- laravel/scout: ^10.3
- league/flysystem-gridfs: ^3.28
- league/flysystem-read-only: ^3.0
- mockery/mockery: ^1.4.4
- orchestra/testbench: ^8.0|^9.0|^10.0
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10.3|^11.5.3
- rector/rector: ^1.2
- spatie/laravel-query-builder: ^5.6|^6
Suggests
- league/flysystem-gridfs: Filesystem storage in MongoDB with GridFS
Provides
None
Conflicts
- illuminate/bus: < 10.37.2
Replaces
- jenssegers/mongodb: 5.5.0
- 5.x-dev
- 5.5.x-dev
- 5.5.0
- 5.4.x-dev
- 5.4.3
- 5.4.2
- 5.4.1
- 5.4.0
- 5.3.x-dev
- 5.3.1
- 5.3.0
- 5.2.x-dev
- 5.2.2
- 5.2.1
- 5.2.0
- 5.1.x-dev
- 5.1.1
- 5.1.0
- 5.0.x-dev
- 5.0.2
- 5.0.1
- 5.0.0
- 5.0.0-rc1
- 4.9.x-dev
- 4.9.0
- 4.8.x-dev
- 4.8.1
- 4.8.0
- 4.7.x-dev
- 4.7.2
- 4.7.1
- 4.7.0
- 4.6.x-dev
- 4.6.0
- 4.5.x-dev
- 4.5.0
- 4.4.x-dev
- 4.4.1
- 4.4.0
- 4.3.x-dev
- 4.3.1
- 4.3.0
- 4.2.x-dev
- 4.2.2
- 4.2.1
- 4.2.0
- 4.1.x-dev
- 4.1.3
- 4.1.2
- 4.1.1
- 4.1.0
- 4.0.x-dev
- 4.0.3
- 4.0.2
- 4.0.0
- 4.0.0-rc1
- v4.0.0-ALPHA2
- v4.0.0-ALPHA1
- 3.9.x-dev
- v3.9.5
- v3.9.4
- 3.9.3
- v3.9.2
- v3.9.1
- v3.9.0
- 3.8.x-dev
- v3.8.6
- v3.8.5
- 3.8.4
- v3.8.3
- v3.8.2
- v3.8.1
- v3.8.0
- 3.7.x-dev
- v3.7.3
- v3.7.2
- v3.7.1
- v3.7.0
- 3.6.x-dev
- v3.6.8
- v3.6.7
- v3.6.6
- v3.6.5
- v3.6.4
- v3.6.3
- v3.6.2
- v3.6.1
- v3.6.0
- v3.5.3
- v3.5.2
- v3.5.1
- v3.5.0
- v3.4.6
- v3.4.5
- v3.4.4
- v3.4.3
- v3.4.2
- v3.4.1
- v3.4.0
- 3.3.x-dev
- v3.3.2
- v3.3.1
- v3.3.0
- v3.3.0-alpha
- v3.2.3
- v3.2.2
- v3.2.1
- v3.2.0
- v3.1.4
- v3.1.3
- v3.1.2
- v3.1.1
- v3.1.0
- v3.1.0-alpha
- v3.0.2
- v3.0.1
- v3.0.0
- v3.0.0-beta
- v3.0.0-alpha
- 2.3.x-dev
- v2.3.5
- v2.3.4
- v2.3.3
- v2.3.2
- v2.3.1
- v2.3.0
- 2.2.x-dev
- v2.2.10
- v2.2.9
- v2.2.8
- v2.2.7
- v2.2.6
- v2.2.5
- v2.2.4
- v2.2.3
- v2.2.2
- v2.2.1
- v2.2.0
- 2.1.x-dev
- v2.1.9
- v2.1.8
- v2.1.7
- v2.1.6
- v2.1.5
- v2.1.4
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- v2.1.0-beta
- 2.0.x-dev
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v2.0.0-alpha
- v1.4.3
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.2
- v1.3.1
- v1.3.0
- v1.2.9
- v1.2.8
- v1.2.7
- v1.2.6
- v1.2.5
- v1.2.4
- v1.2.3
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- dev-dependabot/github_actions/actions/checkout-6
- dev-merge-4.9-into-5.0-1751545695483
- dev-merge-4.9-into-5.0-1746473717908
- dev-merge-5.4-into-5.x-1745310134641
- dev-DOCSP-47918
- dev-merge-4.8-into-5.0-1737731102855
- dev-merge-5.1-into-5.x-1737731084684
- dev-merge-4.8-into-5.0-1733151734858
- dev-feat-dirty
This package is auto-updated.
Last update: 2025-11-24 21:16:05 UTC
README
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 tomongodb/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 theold versions.
Documentation
Release Integrity
Releases are created automatically and the resulting release tag is signed usingthePHP team's GPG key. To verify thetag signature, download the key and import it usinggpg:
gpg --import php-driver.asc
Then, 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 installationprocess.
Reporting Issues
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:
- Create an account and login.
- Navigate to thePHPORM project.
- Click Create - Please provide as much information as possible about the issue type and how to reproduce it.
Note: All reported issues in JIRA project are public.
For general questions and support requests, please use one of MongoDB'sTechnical Support channels.
Security Vulnerabilities
If you've identified a security vulnerability in a driver or any other MongoDBproject, please report it according to the instructions inCreate a Vulnerability Report.
Development
Development is tracked in thePHPORM project in MongoDB'sJIRA. Documentation for contributing to this project may be found inCONTRIBUTING.md.