Laravel-mongodb: connection error when I use` php artisan passport:install `

Created on 5 May 2018  路  6Comments  路  Source: jenssegers/laravel-mongodb

In Connection.php line 452:
Call to a member function prepare() on null

"jenssegers/mongodb": "3.3.1",
"laravel/framework": "5.5.*",
"laravel/passport": "~4.0",

duplicate question

Most helpful comment

use my package for mongodb(based to Laravel passport, so you can use Passport doc)
https://packagist.org/packages/sedrak/laravel-mongodb-passport
remove larvel passport from composer and install this.

All 6 comments

I have the problem same too. do you found the solution?

Same problem.
In Connection.php line 452: Call to a member function prepare() on null

Seems like when you try to install passport using mongodb passport doesn't know what to do.

Many people had this issue some solved it by implementing jessenger auth in user.php. but issue still exist for some users.
any body found some solution ? I have the same issue..

use my package for mongodb(based to Laravel passport, so you can use Passport doc)
https://packagist.org/packages/sedrak/laravel-mongodb-passport
remove larvel passport from composer and install this.

Thank you @sedrak1987 !
It worked with:
"laravel/framework": "^5.8.0",
"jenssegers/mongodb": "3.*",

Was this page helpful?
0 / 5 - 0 ratings