#105105th of 275 in Backends, databases and hosting

laravel-mongodb

Eloquent model and query builder extensions for MongoDB in Laravel

Releases and problems feed (RSS)

Stars
7.1k
License
MIT
Last commit
Nov 2026
Last release
Nov 2026
Language
PHP
Stars, last 29 weeks+23
29 Apr 2026: 7,035 stars6 May 2026: 7,037 stars13 May 2026: 7,037 stars20 May 2026: 7,037 stars27 May 2026: 7,039 stars3 Jun 2026: 7,041 stars10 Jun 2026: 7,041 stars17 Jun 2026: 7,041 stars24 Jun 2026: 7,041 stars1 Jul 2026: 7,043 stars8 Jul 2026: 7,044 stars15 Jul 2026: 7,044 stars22 Jul 2026: 7,045 stars29 Jul 2026: 7,046 stars5 Aug 2026: 7,047 stars12 Aug 2026: 7,047 stars19 Aug 2026: 7,048 stars26 Aug 2026: 7,048 stars2 Sept 2026: 7,048 stars9 Sept 2026: 7,049 stars16 Sept 2026: 7,050 stars23 Sept 2026: 7,050 stars30 Sept 2026: 7,050 stars7 Oct 2026: 7,051 stars14 Oct 2026: 7,052 stars21 Oct 2026: 7,052 stars28 Oct 2026: 7,053 stars4 Nov 2026: 7,054 stars11 Nov 2026: 7,057 stars18 Nov 2026: 7,058 stars

7,035 on 29 Apr 20267,058 on 18 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Official MongoDB package that extends Laravel's Eloquent models and query builder so they run against MongoDB using the standard Laravel API. It extends the original Laravel classes, so existing method names apply. This is a general PHP database integration, and the README describes no AI features.

Who it is for: Laravel developers who want to use MongoDB with Eloquent

Strengths

  • Extends Laravel's own Eloquent and query builder classes, so the same methods apply
  • Maintained by MongoDB, Inc., with documentation on mongodb.com
  • Release tags are GPG-signed with the PHP team's key
  • MIT license with recent releases (latest 2026-11-13)

Weaknesses

  • No AI, LLM or vector search features described in the README
  • README states compatibility with Laravel 10.x; older versions need old branches
  • Issues are tracked in MongoDB's JIRA rather than GitHub issues
  • Needs a MongoDB server; it is a driver layer, not a backend or host

What it needs

  • no GPU
  • Docker + Compose
  • Needs MongoDB, Laravel, PHP

What changed

  1. 5.12.0 ↗ (opens in a new tab)BreakingSecurity fix

    “Apply the connection prefix in the schema methods inherited from Laravel. hasTable(), dropIfExists(), getColumns() and getIndexes() now apply the prefix, as Laravel does. The migration repository rel…”

    CVE-2026-118510. “Deny the server-side JavaScript operators $where, $function and $accumulator in DatabaseQuery, including nested in filters, projections, let and aggregation stages: by @paulinevos in #3651”

  2. 5.11.0 ↗ (opens in a new tab)Security fix

    CVE-2026-88022, CVE-2026-96744, CVE-2026-88028, CVE-2026-88027. “PHPLARA-260 Force literal equality when a 3-arg where('=') has an operator array by @GromNaN in https://github.com/mongodb/laravel-mongodb/pull/3581 CVE-2026-88022”

From the release notes. No flag means the note does not say so, not that the upgrade is safe.

Known problems

Open now, reported in the last 90 days

Reported, then fixed by a linked change

Titles are the reporters' own words, taken from the project's GitHub issues and ranked by reactions. We have not tried to reproduce any of them.

Also in Backends, databases and hosting

See all 275
Also in Backends, databases and hosting
RankProjectScore
1bunJavaScript and TypeScript runtime with bundler, test runner and package manager96.8k starscustom license94 out of 100
2coolifySelf-hosted Heroku and Vercel alternative that deploys apps and databases over SSH66.2k stars+3,121 (+4.9%) in 30 daysApache-2.093 out of 100
3traefikHTTP reverse proxy and load balancer that auto-discovers routes from orchestrators65.6k starsMIT93 out of 100
#4appwriteBackend with auth, databases, storage, functions and an MCP server for agents Live demo ↗ (opens in a new tab)58.4k stars+641 (+1.1%) in 30 daysBSD-3-Clause93 out of 100
#5medusaNode.js commerce platform with modular products, carts, orders and payments37.3k starscustom license93 out of 100