Commit e6ad623f authored by Jens Segers's avatar Jens Segers

Move capsule documentation to installation

parent d6f01136
...@@ -42,6 +42,15 @@ Add the service provider in `app/config/app.php`: ...@@ -42,6 +42,15 @@ Add the service provider in `app/config/app.php`:
The service provider will register a mongodb database extension with the original database manager. There is no need to register additional facades or objects. When using mongodb connections, Laravel will automatically provide you with the corresponding mongodb objects. The service provider will register a mongodb database extension with the original database manager. There is no need to register additional facades or objects. When using mongodb connections, Laravel will automatically provide you with the corresponding mongodb objects.
For usage outside Laravel, check out the [Capsule manager](https://github.com/illuminate/database/blob/master/README.md) and add:
```php
$capsule->getDatabaseManager()->extend('mongodb', function($config)
{
return new Jenssegers\Mongodb\Connection($config);
});
```
Configuration Configuration
------------- -------------
...@@ -78,15 +87,6 @@ You can connect to multiple servers or replica sets with the following configura ...@@ -78,15 +87,6 @@ You can connect to multiple servers or replica sets with the following configura
), ),
``` ```
For usage outside Laravel, check out the [Capsule manager](https://github.com/illuminate/database/blob/master/README.md) and add:
```php
$capsule->getDatabaseManager()->extend('mongodb', function($config)
{
return new Jenssegers\Mongodb\Connection($config);
});
```
Eloquent Eloquent
-------- --------
......
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