Skip to content

Commit 9d02f23

Browse files
committed
Installation instructions for Laravel 5 and 4 #466
1 parent 8304a46 commit 9d02f23

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,18 @@ Installation
2222

2323
Make sure you have the MongoDB PHP driver installed. You can find installation instructions at http://php.net/manual/en/mongo.installation.php
2424

25-
Install using composer:
25+
For Laravel 5, install the latest stable version using composer:
2626

2727
```json
2828
composer require jenssegers/mongodb
2929
```
3030

31+
For Laravel 4.2, use version `~2.0`:
32+
33+
```json
34+
composer require jenssegers/mongodb ~2.0
35+
```
36+
3137
Add the service provider in `app/config/app.php`:
3238

3339
```php

0 commit comments

Comments
 (0)