Skip to content

Commit 6e26aed

Browse files
committed
wip
1 parent 4ec3442 commit 6e26aed

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,16 @@ Table of contents
2727
- [MongoDB-specific Geo operations](#mongodb-specific-geo-operations)
2828
- [Inserts, updates and deletes](#inserts-updates-and-deletes)
2929
- [MongoDB specific operations](#mongodb-specific-operations)
30-
- [Relationships](#relationships)
30+
- [Relationships](#relationships)
31+
- [Basic Usage](#basic-usage-1)
3132
- [belongsToMany and pivots](#belongstomany-and-pivots)
3233
- [EmbedsMany Relationship](#embedsmany-relationship)
3334
- [EmbedsOne Relations](#embedsone-relations)
3435
- [Query Builder](#query-builder)
36+
- [Basic Usage](#basic-usage-2)
3537
- [Available operations](#available-operations)
3638
- [Schema](#schema)
39+
- [Basic Usage](#basic-usage-3)
3740
- [Geospatial indexes](#geospatial-indexes)
3841
- [Extending](#extending)
3942
- [Cross-Database Relations](#cross-database-relations)
@@ -719,7 +722,10 @@ DB::collection('users')
719722
$user->unset('note');
720723
```
721724

722-
### Relationships
725+
Relationships
726+
-------------
727+
728+
### Basic Usage
723729

724730
The only available relationships are:
725731
- hasOne
@@ -927,6 +933,9 @@ $book->author()->save($newAuthor);
927933

928934
Query Builder
929935
-------------
936+
937+
### Basic Usage
938+
930939
The database driver plugs right into the original query builder.
931940

932941
When using MongoDB connections, you will be able to build fluent queries to perform database operations.
@@ -952,6 +961,8 @@ Schema
952961
------
953962
The database driver also has (limited) schema builder support. You can easily manipulate collections and set indexes.
954963

964+
### Basic Usage
965+
955966
```php
956967
Schema::create('users', function ($collection) {
957968
$collection->index('name');

0 commit comments

Comments
 (0)