laravel-mongodb icon indicating copy to clipboard operation
laravel-mongodb copied to clipboard

connection error when I use` php artisan passport:install `

Open hosseinjafari24 opened this issue 6 years ago • 6 comments

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",

hosseinjafari24 avatar May 05 '18 15:05 hosseinjafari24

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

pacakman avatar May 23 '18 05:05 pacakman

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.

rakmaster avatar Sep 13 '18 04:09 rakmaster

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..

blueneel05 avatar Nov 06 '18 08:11 blueneel05

This solved my problem https://github.com/sadnub/laravel-mongodb-passport-fix

blueneel05 avatar Nov 12 '18 09:11 blueneel05

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.

sedrak1987 avatar Jun 06 '19 07:06 sedrak1987

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

aline-matos avatar Aug 09 '19 18:08 aline-matos