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.
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.
jenssegers/laravel-mongodb (Moloquent)How can I help you explore Laravel packages today?