Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting error on install passport in lumen 9 #175

Open
chitos07 opened this issue Aug 23, 2022 · 22 comments
Open

getting error on install passport in lumen 9 #175

chitos07 opened this issue Aug 23, 2022 · 22 comments

Comments

@chitos07
Copy link

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

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

@wukongrita
Copy link

@chitos07 have you solve this ?

@ayushaarrsolprivatelimited

any solution for this?

@mendizalea
Copy link

Same problem after update to Lumen 9

@mendizalea
Copy link

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
Copy link
Author

@chitos07 have you solve this ?

Nah i use lumen 8 instead of 9

@AlejandroD-A
Copy link

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
Copy link

same error for me

@mostafa-pgs
Copy link

same error for me.

@codepoetryindia
Copy link

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
Copy link

Using Lumen 9
This worked for me too. Thanks.

@JonasDeOliveira
Copy link

It worked here, thanks!

@Rasoul-Karimi
Copy link

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

@dusterio

@mazfreelance
Copy link

mazfreelance commented Dec 7, 2022

I just discover laravel/passport was an upgraded version and not supported on this package.
this is an issue that I found.
laravel/passport#1464

solution:
downgrade laravel/passport into 10.4.1

@TheQuik
Copy link

TheQuik commented Jan 17, 2023

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
Copy link

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
Copy link

thachkg commented May 9, 2023

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

@TimoFrenzel
Copy link

TimoFrenzel commented Jun 29, 2023

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
Copy link
Contributor

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

@jeanlinux
Copy link

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
Copy link

I have same error with lumen & passport latest version

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

@Rasoul-Karimi
Copy link

Rasoul-Karimi commented Apr 13, 2024

I have same error with lumen 10! please check

@Rasoul-Karimi
Copy link

Rasoul-Karimi commented Apr 13, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests