dusterio / lumen-passport

Making Laravel Passport work with Lumen
MIT License
655 stars 141 forks source link

getting error on install passport in lumen 9 #175

Open chitos07 opened 2 years ago

chitos07 commented 2 years ago

when i try to migrate i got In Facade.php line 338:

Call to undefined method Laravel\Lumen\Routing\Router::middleware()

wukongrita commented 2 years ago

@chitos07 have you solve this ?

ayushaarrsolprivatelimited commented 2 years ago

any solution for this?

mendizalea commented 2 years ago

Same problem after update to Lumen 9

mendizalea commented 2 years ago

Localized problem, it is some incompatibility with the new version of Passport v11. Adding in composer.json the following line works correctly with Lumen 9:

"laravel/passport": "^10.4"

chitos07 commented 2 years ago

@chitos07 have you solve this ?

Nah i use lumen 8 instead of 9

AlejandroD-A commented 2 years ago

Localized problem, it is some incompatibility with the new version of Passport v11. Adding in composer.json the following line works correctly with Lumen 9:

"laravel/passport": "^10.4

This work great for me.

mehmetext commented 2 years ago

same error for me

mostafa-pgs commented 2 years ago

same error for me.

codepoetryindia commented 2 years ago

Localized problem, it is some incompatibility with the new version of Passport v11. Adding in composer.json the following line works correctly with Lumen 9:

"laravel/passport": "^10.4"

This work for me

mtshikomba commented 2 years ago

Using Lumen 9 This worked for me too. Thanks.

JonasDeOliveira commented 1 year ago

It worked here, thanks!

Rasoul-Karimi commented 1 year ago

solve problem with add "laravel/passport": "^10.4" ok! but not solve this one on mane package and relase it!??

@dusterio

mazfreelance commented 1 year ago

I just discover laravel/passport was an upgraded version and not supported on this package. this is an issue that I found. https://github.com/laravel/passport/pull/1464

solution: downgrade laravel/passport into 10.4.1

TheQuik commented 1 year ago

Localized problem, it is some incompatibility with the new version of Passport v11. Adding in composer.json the following line works correctly with Lumen 9:

"laravel/passport": "^10.4"

Great!!! tks!!

LucaAlvess commented 1 year ago

Localized problem, it is some incompatibility with the new version of Passport v11. Adding in composer.json the following line works correctly with Lumen 9:

"laravel/passport": "^10.4"

It worked really well for me

thachkg commented 1 year ago

You can disable register routers to ignore errors: Passport::$registersRoutes = false;

TimoFrenzel commented 1 year ago

hm,

after downgrading to "laravel/passport": "^10.4" i have

Illuminate\Support\ServiceProvider::{closure}(): Argument #1 ($router) must be of type Illuminate\Routing\Router, Laravel\Lumen\Routing\Router given, called in /var/www/html/vendor/laravel/lumen-framework/src/Routing/Router.php
on line 62

MattApril commented 1 year ago

Lumen itself is largely abandoned at this point, I would suggest switching to Laravel if you are using passport.

jeanlinux commented 8 months ago

I am experiencing the same issue here, I am on lumen 10, dusterio/lumen-passport 0.3.8 and laravel/passport 11.10.2. A fix would be appreciated.

himanshutecstub commented 7 months ago

I have same error with lumen & passport latest version

"laravel/lumen-framework": "^10.0",
"laravel/passport": "^11.10",
Rasoul-Karimi commented 5 months ago

I have same error with lumen 10! please check

Rasoul-Karimi commented 5 months ago

I have same error with lumen & passport latest version

"laravel/lumen-framework": "^10.0",
"laravel/passport": "^11.10",

i use it and dont work for me! on lumen 10 and laravel/passport 11 and get thsi error : Call to undefined method Laravel\Lumen\Routing\Router::middleware()