kayrules / lumen-passport-mongodb

Making Laravel Passport work with Lumen
MIT License
6 stars 7 forks source link

Package not install in lumen 8 #8

Open himanshutecstub opened 3 years ago

himanshutecstub commented 3 years ago

Php : 7.4 Lumen : 8.0

When try to add lumen-passport-mongodb in lumen project via composer than error shown as below kayrules/lumen-passport-mongodb 0.4.0 requires illuminate/database ~5.3|~5.4 -> found illuminate/database[v5.3.0, ..., 5.8.x-dev]

already install dusterio/lumen-passport which is working fine for mysql database but not working for mongodb

mohammadlth commented 1 year ago

can use : dusterio/lumen-passport but change model database in src folder vendor/laravel/passport/src [Token.php , RefreshToken.php , ....]
use \Illuminate\Database\Eloquent\Model to use Jenssegers\Mongodb\Eloquent\Model