You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Laravel Eloquent adds support for ODM (Object Document Mapper) to Laravel. It's the same as Eloquent ORM, but with Documents, since MongoDB is a NoSQL database.
7
-
6
+
This package adds functionalities to the Eloquent model and Query builder for MongoDB, using the original Laravel API. *This library extends the original Laravel classes, so it uses exactly the same methods.*
8
7
9
8
-[Laravel MongoDB](#laravel-mongodb)
10
-
-[Laravel Installation](#laravel-installation)
9
+
-[Installation](#installation)
11
10
-[Laravel version Compatibility](#laravel-version-compatibility)
12
11
-[Laravel](#laravel)
13
12
-[Lumen](#lumen)
@@ -29,19 +28,19 @@ Laravel Eloquent adds support for ODM (Object Document Mapper) to Laravel. It's
29
28
-[Basic Usage](#basic-usage-1)
30
29
-[belongsToMany and pivots](#belongstomany-and-pivots)
Make sure you have the MongoDB PHP driver installed. You can find installation instructions at http://php.net/manual/en/mongodb.installation.php
47
46
@@ -874,7 +873,7 @@ class User extends Model
874
873
Embedded relations will return a Collection of embedded items instead of a query builder. Check out the available operations here: https://laravel.com/docs/master/collections
875
874
876
875
877
-
### EmbedsOne Relations
876
+
### EmbedsOne Relationship
878
877
879
878
The embedsOne relation is similar to the embedsMany relation, but only embeds a single model.
880
879
@@ -1023,7 +1022,7 @@ Schema::create('bars', function ($collection) {
1023
1022
Extending
1024
1023
---------
1025
1024
1026
-
### Cross-Database Relations
1025
+
### Cross-Database Relationships
1027
1026
1028
1027
If you're using a hybrid MongoDB and SQL setup, you can define relationships across them.
0 commit comments