Skip to content

Commit f373510

Browse files
committed
Add version information to the readme
1 parent dd1959f commit f373510

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

README.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,18 @@ For Laravel 5, install the latest stable version using composer:
2828
composer require jenssegers/mongodb
2929
```
3030

31-
And add the service provider in `config/app.php`:
32-
33-
```php
34-
Jenssegers\Mongodb\MongodbServiceProvider::class,
35-
```
31+
### Version Compatibility
3632

37-
For Laravel 4.2, use version `~2.0`:
33+
Laravel | MongoDB
34+
:---------|:----------
35+
4.2.x | 2.0.x
36+
5.0.x | 2.1.x
37+
5.1.x | 2.2.x
3838

39-
```
40-
composer require jenssegers/mongodb ~2.0
41-
```
42-
43-
And add the service provider as follows in `app/config/app.php`:
39+
And add the service provider in `config/app.php`:
4440

4541
```php
46-
'Jenssegers\Mongodb\MongodbServiceProvider',
42+
Jenssegers\Mongodb\MongodbServiceProvider::class,
4743
```
4844

4945
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`:

0 commit comments

Comments
 (0)