Commit 4490bca4 authored by Jivesh S. Gahlawat's avatar Jivesh S. Gahlawat Committed by Jens Segers

using scope resolution operator and minor indentation fix (#1075)

parent 9e510511
......@@ -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();
```
......@@ -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'
]
],
```
......@@ -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:
......
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