Skip to content

Commit d9f2c51

Browse files
committed
Use smaller troubleshooting titles
1 parent f24cd2f commit d9f2c51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ The MongoDB session driver is available in a separate package, check out https:/
165165
Troubleshooting
166166
---------------
167167

168-
### Class 'MongoClient' not found in ...
168+
#### Class 'MongoClient' not found in ...
169169

170170
The `MongoClient` class is part of the MongoDB PHP driver. Usually, this error means that you forgot to install, or did not install this driver correctly. You can find installation instructions for this driver at http://php.net/manual/en/mongo.installation.php.
171171

@@ -174,7 +174,7 @@ To check if you have installed the driver correctly, run the following command:
174174
$ php -i | grep 'Mongo'
175175
MongoDB Support => enabled
176176

177-
### Argument 2 passed to Illuminate\Database\Query\Builder::__construct() must be an instance of Illuminate\Database\Query\Grammars\Grammar, null given
177+
#### Argument 2 passed to Illuminate\Database\Query\Builder::__construct() must be an instance of Illuminate\Database\Query\Grammars\Grammar, null given
178178

179179
To solve this, you will need to check two things. First check if your model is extending the correct class; this class should be `Jenssegers\Mongodb\Model`. Secondly, check if your model is using a MongoDB connection. If you did not change the default database connection in your database configuration file, you need to specify the MongoDB enabled connection. This is what your class should look like if you did not set up an alias and change the default database connection:
180180

0 commit comments

Comments
 (0)