Skip to content

using scope resolution operator and minor indentation fix #1075

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 10, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Jenssegers\Mongodb\MongodbServiceProvider::class,
For usage with [Lumen](http://lumen.laravel.com), add the service provider in `bootstrap/app.php`. In this file, you will also need to enable Eloquent. You must however ensure that your call to `$app->withEloquent();` is **below** where you have registered the `MongodbServiceProvider`:

```php
$app->register('Jenssegers\Mongodb\MongodbServiceProvider');
$app->register(Jenssegers\Mongodb\MongodbServiceProvider::class);

$app->withEloquent();
```
Expand Down Expand Up @@ -120,7 +120,7 @@ And add a new mongodb connection:
'database' => env('DB_DATABASE'),
'username' => env('DB_USERNAME'),
'password' => env('DB_PASSWORD'),
'options' => [
'options' => [
'database' => 'admin' // sets the authentication database required by mongo 3
]
],
Expand All @@ -136,7 +136,9 @@ You can connect to multiple servers or replica sets with the following configura
'database' => env('DB_DATABASE'),
'username' => env('DB_USERNAME'),
'password' => env('DB_PASSWORD'),
'options' => ['replicaSet' => 'replicaSetName']
'options' => [
'replicaSet' => 'replicaSetName'
]
],
```

Expand Down Expand Up @@ -182,7 +184,7 @@ Everything else (should) work just like the original Eloquent model. Read more a
You may also register an alias for the MongoDB model by adding the following to the alias array in `config/app.php`:

```php
'Moloquent' => 'Jenssegers\Mongodb\Eloquent\Model',
'Moloquent' => Jenssegers\Mongodb\Eloquent\Model::class,
```

This will allow you to use the registered alias like:
Expand Down