designmynight / laravel-mongodb-passport

A package to get Laravel Passport working with MongoDB
MIT License
67 stars 75 forks source link

Error when run passport:installl #53

Open nduydoan opened 3 years ago

nduydoan commented 3 years ago

I run php artisan passport:install has error Symfony\Component\Debug\Exception\FatalThrowableError : Argument 1 passed to Laravel\Passport\Console\ClientCommand::outputClientDetails() must be an instance of Laravel\Passport\Client, instance of DesignMyNight\Mongodb\Passport\Client given, called in D:\Projects\basiganh\vendor\laravel\passport\src\Console\ClientCommand.php on line 69

        "php": "^7.2.5|^8.0",
        "designmynight/laravel-mongodb-passport": "2.0.1",
        "jenssegers/mongodb": "3.6.*",
        "fideloper/proxy": "^4.4",
        "laravel/framework": "^6.20.26",
        "laravel/passport": "8.0",
        "laravel/tinker": "^2.5",
        "laravel/ui": "1.3"
    }

Pls help me.

1115332213 commented 3 years ago

I run php artisan passport:install has error Symfony\Component\Debug\Exception\FatalThrowableError : Argument 1 passed to Laravel\Passport\Console\ClientCommand::outputClientDetails() must be an instance of Laravel\Passport\Client, instance of DesignMyNight\Mongodb\Passport\Client given, called in D:\Projects\basiganh\vendor\laravel\passport\src\Console\ClientCommand.php on line 69

        "php": "^7.2.5|^8.0",
        "designmynight/laravel-mongodb-passport": "2.0.1",
        "jenssegers/mongodb": "3.6.*",
        "fideloper/proxy": "^4.4",
        "laravel/framework": "^6.20.26",
        "laravel/passport": "8.0",
        "laravel/tinker": "^2.5",
        "laravel/ui": "1.3"
    }

Pls help me.

I guess you use 'composer require designmynight/laravel-mongodb-passport' directly, please try install this add version like this 'composer require designmynight/laravel-mongodb-passport 1.2.9', wish my reply can help you