Compatibility
On this page
Laravel Compatibility
The following compatibility table specifies the versions of Laravel and the Laravel Integration that you can use together.
Laravel MongoDB Version | Laravel 12.x | Laravel 11.x | Laravel 10.x | Laravel 9.x |
---|---|---|---|---|
5.2 to 5.3 | ✓ | ✓ | ✓ | |
4.2 to 5.1 | ✓ | ✓ | ||
4.1 | ✓ | |||
4.0 | ✓ |
To find compatibility information for unmaintained versions of the Laravel Integration, see Laravel Version Compatibility on GitHub.
PHP Driver Compatibility
To use Laravel MongoDB v5.2 or later, you must install v1.21 of the MongoDB PHP Library and MongoDB PHP Extension.
Important
MongoDB PHP Extension v2.0 Compatibility
If you upgrade the MongoDB PHP Extension to v2.0, you must also upgrade Laravel MongoDB to v5.2.1. Laravel MongoDB v5.2.1 still supports v1.x versions of the extension.