Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Nova Mongodb Laravel Package

francescoprisco/nova-mongodb

MongoDB integration for Laravel Nova: browse and manage MongoDB collections through Nova resources, with support for fields, filters, and searching backed by the official MongoDB Laravel package.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Stack choice: MongoDB-only Laravel app with a first-party admin panel. "Zero SQL dependencies" means the admin surface (resources, activity log, notifications) can live entirely in MongoDB. This unlocks a decision that Nova historically blocked: teams that chose MongoDB for schema flexibility no longer need to bolt on MySQL/Postgres just to run Nova. Treat this as the headline product decision — it can remove a whole database from the architecture and its ops cost.
  • Build vs. buy for the admin layer. The package bundles the three things teams almost always hand-roll for MongoDB + Nova: a MongoDBResource base class (with regex search), automatic CRUD observer logging (ModelObserver → ActionEvent), and a Mongo-backed notification center. Estimate the alternative at several weeks of engineering plus ongoing Nova-upgrade maintenance; the buy case is strong if you need all three, weak if you need only one.
  • Audit trail / activity log as a product feature, not an afterthought. ActionEvent + automatic observer registration on every MongoDB model gives you append-only CRUD history with near-zero integration work. Supports decisions on compliance evidence, support/debugging workflows ("what changed and who changed it"), and internal-vs-customer-facing activity feeds.
  • In-app notification center for admin/staff users without a SQL schema migration. NovaNotification, MongoNotifiable, and the six /nova-api/nova-notifications routes give read/unread state, read-all, and delete semantics out of the box. This is a roadmap accelerant for any "alert the ops team when X happens" requirement.
  • Roadmap sequencing: admin tooling can ship alongside the Mongo data model rather than waiting on a relational reporting/back-office service. Relevant if you're planning a phased migration to MongoDB and need the admin panel to move in the same phase.
  • Polymorphic modeling decisions. HandlesMorphRelations is an explicit acknowledgement that polymorphic relations are the sharp edge of MongoDB + Eloquent. Its existence should inform (and de-risk) any decision to model comments, attachments, or activity targets polymorphically.
  • Transaction semantics for money/inventory flows. MongoDBConnection's nested transaction handling is a meaningful enabler for product areas that need multi-document atomicity — but it also constrains deployment topology (see below), which is a product-visible infrastructure decision, not just an engineering one.

When to Consider This Package

Adopt when most of these hold:

  • You are already committed to Laravel Nova 5 (paid license) and your domain data is in MongoDB via mongodb/laravel-mongodb ^5.5.
  • You need admin CRUD plus activity logging plus an in-app notification center, and you want them consistent rather than three bespoke implementations.
  • You want to eliminate SQL from the stack entirely — the zero-SQL claim is the differentiator versus mixing Nova's default SQL-backed notifications/audit tables with a Mongo app.
  • You are on PHP 8.2+, Laravel 11/12, MongoDB 5.0+ and can run a replica set (required for the transaction handling to be meaningful; single-node dev setups will need configuration work).
  • You can absorb single-maintainer risk on a critical internal surface, or you're willing to fork/pin.

Look elsewhere or defer when:

  • You are on Laravel 10 LTS or Nova 4. Hard version floors (Laravel 11+, Nova 5+) rule this out — no backport path is stated.
  • Feature-parity with stock Nova is a requirement. The release notes make no claims about Lenses, Metrics, Dashboards, filters, or field-level query translation. Nova internals lean on SQL-shaped query building; assume these need a discovery spike before you promise them to stakeholders.
  • You need a mature, multi-contributor, long-track-record dependency. This is v1.0.0 (2026-01-19) with no published track record, no stated test suite in the notes, and no deprecation/upgrade policy. That's fine for an internal admin panel; not fine for a product surface you sell on.
  • Your notifications must reach end users via broadcast/email/SMS at scale. This package solves storage and read state in Mongo; it does not replace a delivery fan-out layer.
  • You need authorization granularity, multi-tenancy, or audit immutability guarantees. Policies, tenant scoping, and tamper-evident logging are not addressed.
  • Compliance/legal requires a supported vendor. Single-author OSS with no security disclosure process is a procurement conversation, not a technical one.
  • You only need one of the three pillars. If you just want Mongo resources, the resource base class alone may not justify pulling in the notification routes and observer wiring.

Due diligence before committing: confirm license, test coverage, CI status, issue responsiveness, and whether the custom Nova API routes respect Nova's auth middleware; validate Lenses/Metrics/Filters against a real resource; verify replica-set requirement end-to-end in staging.

How to Pitch It (Stakeholders)

For executives (one paragraph): A new open-source package lets our Laravel admin panel run natively on MongoDB — including audit logging and staff notifications — without maintaining a separate SQL database. If we're building on MongoDB, this removes a database from our architecture and shortens time-to-admin-panel from weeks to days. The trade-off is dependency risk: it's a v1.0.0 from a single maintainer, so we should treat it as an internal-tooling accelerator, pin the version, and keep a fork option. Recommend a scoped pilot on one internal admin surface, not a platform-wide commitment.

For engineering (the ask): Evaluate against a real Nova resource in a spike. Confirm (1) Lenses, Metrics, Filters, and sorting behavior against MongoDB; (2) that the custom /nova-api/nova-notifications routes sit behind Nova's auth/authorization middleware; (3) replica-set requirement and nested-transaction behavior in staging; (4) observer registration strategy — global observers on all Mongo models have cost and blast-radius implications; (5) polymorphic relation coverage via HandlesMorphRelations. Then decide: adopt, adopt-and-fork, or cherry-pick the MongoDBResource base class and notification models without the connection/observer layers.

Bottom line for the roadmap: high leverage, low blast radius if scoped to internal admin and activity/notification plumbing; treat the custom MongoDBConnection (transaction semantics) and global observers as the two components requiring the most scrutiny, since they are the hardest to unwind later.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk