@@ -27,13 +27,16 @@ Table of contents
27
27
- [ MongoDB-specific Geo operations] ( #mongodb-specific-geo-operations )
28
28
- [ Inserts, updates and deletes] ( #inserts-updates-and-deletes )
29
29
- [ MongoDB specific operations] ( #mongodb-specific-operations )
30
- - [ Relationships] ( #relationships )
30
+ - [ Relationships] ( #relationships )
31
+ - [ Basic Usage] ( #basic-usage-1 )
31
32
- [ belongsToMany and pivots] ( #belongstomany-and-pivots )
32
33
- [ EmbedsMany Relationship] ( #embedsmany-relationship )
33
34
- [ EmbedsOne Relations] ( #embedsone-relations )
34
35
- [ Query Builder] ( #query-builder )
36
+ - [ Basic Usage] ( #basic-usage-2 )
35
37
- [ Available operations] ( #available-operations )
36
38
- [ Schema] ( #schema )
39
+ - [ Basic Usage] ( #basic-usage-3 )
37
40
- [ Geospatial indexes] ( #geospatial-indexes )
38
41
- [ Extending] ( #extending )
39
42
- [ Cross-Database Relations] ( #cross-database-relations )
@@ -719,7 +722,10 @@ DB::collection('users')
719
722
$user->unset('note');
720
723
```
721
724
722
- ### Relationships
725
+ Relationships
726
+ -------------
727
+
728
+ ### Basic Usage
723
729
724
730
The only available relationships are:
725
731
- hasOne
@@ -927,6 +933,9 @@ $book->author()->save($newAuthor);
927
933
928
934
Query Builder
929
935
-------------
936
+
937
+ ### Basic Usage
938
+
930
939
The database driver plugs right into the original query builder.
931
940
932
941
When using MongoDB connections, you will be able to build fluent queries to perform database operations.
@@ -952,6 +961,8 @@ Schema
952
961
------
953
962
The database driver also has (limited) schema builder support. You can easily manipulate collections and set indexes.
954
963
964
+ ### Basic Usage
965
+
955
966
``` php
956
967
Schema::create('users', function ($collection) {
957
968
$collection->index('name');
0 commit comments