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
Mongodb Relations

Mongodb Relations Laravel Package

artelogic/mongodb-relations

Adds Eloquent-style relationships to MongoDB models in Laravel. Define hasOne, hasMany, belongsTo, and many-to-many relations on Mongo documents, with lazy and eager loading support, so you can work with related collections using familiar Laravel syntax.

View on GitHub
Deep Wiki
Context7

artelogic/mongodb-relations brings Eloquent-style relationships to MongoDB models in Laravel, letting you define links like hasOne, hasMany, and belongsTo between documents instead of writing manual queries. It bridges Laravel's expressive ORM API and document databases, so related data feels as natural as it does with SQL while keeping MongoDB's flexible schema intact.

Relations are declared directly on your models and resolved through referenced IDs stored in documents, keeping your code readable and consistent with the rest of your application.

  • Eloquent-style relation methods on MongoDB models
  • ID-based references between documents
  • Familiar, drop-in model configuration
  • Works alongside jenssegers/laravel-mongodb (Moloquent)
  • Keeps queries expressive and maintainable
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.
adachsoft/changelog-linter
adachsoft/collection
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
adachsoft/php-code-style