Support the ongoing development of Laravel.io →
Database Lumen Passport

Hello,

I want to use laravel passport in lumen 8 with mongodb For that i USE jenssegers/mongodb module and also use dusterio/lumen-passport which is working fine with MySql but not working for mongodb

It's also working after some changes in vendor directory vendor/laravel/passport/src (change DB model to jenssegers model) Please guide me how i overwrite that files?

Also check kayrules/lumen-passport-mongodb extension is not working for PHP 7.4 Please help for that

Last updated 2 years ago.
0

Hey,

you can override the models used in passport according to the passport docs, no need to change stuff in the vendor directory (never do that): https://laravel.com/docs/8.x/passport#overriding-default-models

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.