Laravel Jenssegers/MongoDB Supports Laravel Passport by Another Dependency
1 min readOct 8, 2018
Previously I try to created a Laravel REST/ful API using mongoDB, all good until I was doing:
php artisan passport:install
it showed me error like this:
Then I was trying to use designmynight/laravel-mongodb-passport dependency and It worked, let me show you how to use it.
Step 1: Installing the dependency
First step you need to install the dependency:
composer require designmynight/laravel-mongodb-passport
Step 2: Adding Service Provider
Open config/app.php and then adding this service provider:
DesignMyNight\Mongodb\MongodbPassportServiceProvider::class,
— Completed —
How easy was that? If you found any problem, please leave me a comment below, let’s discuss that problem?