Docs Menu
Docs Home
/ / /
Laravel MongoDB

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:

  • Eloquent Model Class shows how to define models and customize their behavior

  • Eloquent Model Relationships shows how to define relationships between models

  • Schema Builder shows how to manage indexes on your MongoDB collections by using Laravel migrations

Back

Aggregation Builder