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. Laravel MongoDB 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 Laravel MongoDB 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

Next

Eloquent Model Class