Laravel MongoDB is an Eloquent model and Query builder extension for Laravel that enables MongoDB as a database backend using the standard Laravel API.
The package solves the problem of using MongoDB with Laravel applications by extending Eloquent, Laravel's built-in ORM, to work with MongoDB instead of relational databases. It implements the same methods and patterns developers already use in Laravel, so the learning curve is minimal. The approach preserves API compatibility with standard Eloquent while adapting the underlying query execution to MongoDB's document model.
Developers should choose this tool if they are building Laravel applications that need MongoDB as their primary database. It suits projects where the document-oriented nature of MongoDB aligns with the data model, and where teams want to leverage Laravel's ecosystem without switching ORMs. The package is compatible with Laravel 10.x and maintains backward compatibility with older Laravel versions through separate branches.
Development is managed through MongoDB's JIRA issue tracking system in the PHPLARA project, where all reported issues are publicly visible. Releases are created automatically with GPG signatures verified using the PHP team's key. The project directs security vulnerability reports through MongoDB's official vulnerability reporting process rather than public issue channels.