From 6c69953710d5032211315964e9a17b8f91367e10 Mon Sep 17 00:00:00 2001 From: Andrea Marco Sartori <22cerbero22@gmail.com> Date: Sun, 3 Aug 2014 00:16:24 +0200 Subject: [PATCH] Update README.md to avoid installation problems I think it's a good idea to inform that the service provider has to be added after `Illuminate\Database\DatabaseServiceProvider` otherwise the following exception is thrown: `Class db does not exist` --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 2ff246b3f..5859fecbe 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,8 @@ Add the service provider in `app/config/app.php`: 'Jenssegers\Mongodb\MongodbServiceProvider', +> **Warning**: be sure to add it after `Illuminate\Database\DatabaseServiceProvider` otherwise you will get `Class db does not exist` error. + The service provider will register a mongodb database extension with the original database manager. There is no need to register additional facades or objects. When using mongodb connections, Laravel will automatically provide you with the corresponding mongodb objects. Configuration