lumen-passport icon indicating copy to clipboard operation
lumen-passport copied to clipboard

getting error on install passport in lumen 9

Open chitos07 opened this issue 1 year ago • 22 comments

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

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

chitos07 avatar Aug 23 '22 22:08 chitos07

@chitos07 have you solve this ?

wukongrita avatar Aug 25 '22 08:08 wukongrita

any solution for this?

Same problem after update to Lumen 9

mendizalea avatar Aug 30 '22 11:08 mendizalea

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"

mendizalea avatar Aug 30 '22 21:08 mendizalea

@chitos07 have you solve this ?

Nah i use lumen 8 instead of 9

chitos07 avatar Aug 31 '22 12:08 chitos07

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.

AlejandroD-A avatar Sep 01 '22 18:09 AlejandroD-A

same error for me

mehmetext avatar Sep 11 '22 13:09 mehmetext

same error for me.

mostafa-pgs avatar Sep 14 '22 05:09 mostafa-pgs

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

codepoetryindia avatar Sep 15 '22 13:09 codepoetryindia

Using Lumen 9 This worked for me too. Thanks.

mtshikomba avatar Sep 25 '22 03:09 mtshikomba

It worked here, thanks!

JonasDeOliveira avatar Nov 05 '22 23:11 JonasDeOliveira

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

@dusterio

Rasoul-Karimi avatar Nov 09 '22 14:11 Rasoul-Karimi

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

mazfreelance avatar Dec 07 '22 15:12 mazfreelance

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!!

TheQuik avatar Jan 17 '23 19:01 TheQuik

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

LucaAlvess avatar Jan 25 '23 09:01 LucaAlvess

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

thachkg avatar May 09 '23 09:05 thachkg

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

TimoFrenzel avatar Jun 29 '23 06:06 TimoFrenzel

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

MattApril avatar Aug 29 '23 13:08 MattApril

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.

jeanlinux avatar Jan 26 '24 17:01 jeanlinux

I have same error with lumen & passport latest version

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

himanshutecstub avatar Feb 21 '24 06:02 himanshutecstub

I have same error with lumen 10! please check

Rasoul-Karimi avatar Apr 13 '24 10:04 Rasoul-Karimi

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()

Rasoul-Karimi avatar Apr 13 '24 10:04 Rasoul-Karimi