Commit 9d02f23e authored by Jens Segers's avatar Jens Segers

Installation instructions for Laravel 5 and 4 #466

parent 8304a46f
...@@ -22,12 +22,18 @@ Installation ...@@ -22,12 +22,18 @@ Installation
Make sure you have the MongoDB PHP driver installed. You can find installation instructions at http://php.net/manual/en/mongo.installation.php Make sure you have the MongoDB PHP driver installed. You can find installation instructions at http://php.net/manual/en/mongo.installation.php
Install using composer: For Laravel 5, install the latest stable version using composer:
```json ```json
composer require jenssegers/mongodb composer require jenssegers/mongodb
``` ```
For Laravel 4.2, use version `~2.0`:
```json
composer require jenssegers/mongodb ~2.0
```
Add the service provider in `app/config/app.php`: Add the service provider in `app/config/app.php`:
```php ```php
......
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