For AI agents: a documentation index is available at https://www.mongodb.com/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.
Docs Menu

Eloquent Models

Eloquent models are part of the Laravel Eloquent object-relational mapping (ORM) framework, which lets you to work with data in a relational database by using model classes and Eloquent syntax. The Laravel Integration extends this framework so that you can use Eloquent syntax to work with data in a MongoDB database.

This section contains guidance on how to use Eloquent models in the Laravel Integration to work with MongoDB in the following ways: