composer require myanmarcyberyouths/passport-mongodb
use MyanmarCyberYouths\Laravel\MongoDB\Auth\User as Authenticatable;
class User extends Authenticatable
{
use HasApiTokens, Notifiable;
}
The commands for the passport are the same as the original passport package. You only need to append -mongodb
to the
command.
php artisan passport-mongodb:install
PHP Version | Laravel Version | Laravel Passport Version | Laravel MongoDB Passport Version |
---|---|---|---|
8.2 | 10.x | 11.x | 1.x |