Commit 6e26aed6 authored by Alex Renoki's avatar Alex Renoki

wip

parent 4ec34422
...@@ -28,12 +28,15 @@ Table of contents ...@@ -28,12 +28,15 @@ Table of contents
- [Inserts, updates and deletes](#inserts-updates-and-deletes) - [Inserts, updates and deletes](#inserts-updates-and-deletes)
- [MongoDB specific operations](#mongodb-specific-operations) - [MongoDB specific operations](#mongodb-specific-operations)
- [Relationships](#relationships) - [Relationships](#relationships)
- [Basic Usage](#basic-usage-1)
- [belongsToMany and pivots](#belongstomany-and-pivots) - [belongsToMany and pivots](#belongstomany-and-pivots)
- [EmbedsMany Relationship](#embedsmany-relationship) - [EmbedsMany Relationship](#embedsmany-relationship)
- [EmbedsOne Relations](#embedsone-relations) - [EmbedsOne Relations](#embedsone-relations)
- [Query Builder](#query-builder) - [Query Builder](#query-builder)
- [Basic Usage](#basic-usage-2)
- [Available operations](#available-operations) - [Available operations](#available-operations)
- [Schema](#schema) - [Schema](#schema)
- [Basic Usage](#basic-usage-3)
- [Geospatial indexes](#geospatial-indexes) - [Geospatial indexes](#geospatial-indexes)
- [Extending](#extending) - [Extending](#extending)
- [Cross-Database Relations](#cross-database-relations) - [Cross-Database Relations](#cross-database-relations)
...@@ -719,7 +722,10 @@ DB::collection('users') ...@@ -719,7 +722,10 @@ DB::collection('users')
$user->unset('note'); $user->unset('note');
``` ```
### Relationships Relationships
-------------
### Basic Usage
The only available relationships are: The only available relationships are:
- hasOne - hasOne
...@@ -927,6 +933,9 @@ $book->author()->save($newAuthor); ...@@ -927,6 +933,9 @@ $book->author()->save($newAuthor);
Query Builder Query Builder
------------- -------------
### Basic Usage
The database driver plugs right into the original query builder. The database driver plugs right into the original query builder.
When using MongoDB connections, you will be able to build fluent queries to perform database operations. When using MongoDB connections, you will be able to build fluent queries to perform database operations.
...@@ -952,6 +961,8 @@ Schema ...@@ -952,6 +961,8 @@ Schema
------ ------
The database driver also has (limited) schema builder support. You can easily manipulate collections and set indexes. The database driver also has (limited) schema builder support. You can easily manipulate collections and set indexes.
### Basic Usage
```php ```php
Schema::create('users', function ($collection) { Schema::create('users', function ($collection) {
$collection->index('name'); $collection->index('name');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment