mongodb / laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel (Moloquent)
https://www.mongodb.com/docs/drivers/php/laravel-mongodb/
MIT License
7.02k stars 1.43k forks source link

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

Open hosseinjafari24 opened 6 years ago

hosseinjafari24 commented 6 years ago

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

pacakman commented 6 years ago

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

rakmaster commented 6 years ago

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.

blueneel05 commented 6 years ago

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 commented 6 years ago

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

sedrak1987 commented 5 years ago

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.

aline-matos commented 5 years ago

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