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

Support laravel passport 11.x #182

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

wadaahmad
Copy link

@wadaahmad wadaahmad commented Aug 23, 2023

Change access_token validation to PersonalAccessTokenFactory

NOTE : You should disable Laravel Passport Route Passport::$registersRoutes = false; in your service provider

@dshyam61
Copy link

@dusterio @wadaahmad by any chance this PR get merged, having issues with passport 11

@jeanlinux
Copy link

@wadaahmad I tried this fork and the error is still there. Call to undefined method Laravel\Lumen\Routing\Router::middleware() . I will like to point out that I am using lumen V10.0

@wadaahmad
Copy link
Author

@jeanlinux You should disable Laravel Passport Route Passport::$registersRoutes = false; in your service provider.

@ekopras18
Copy link

Thanks u @wadaahmad , Work !!!

@UKF-JozefVirag
Copy link

@ekopras18 can you access routes now ? when u disable registerRoutes ?

@ekopras18
Copy link

ekopras18 commented Mar 14, 2024

@ekopras18 can you access routes now ? when u disable registerRoutes ?

yes, but custom this file src/Http/Controllers/AccessTokenController.php see this https://github.com/dusterio/lumen-passport/pull/182/files

@UKF-JozefVirag
Copy link

@ekopras18 can you access routes now ? when u disable registerRoutes ?

yes, but custom this file src/Http/Controllers/AccessTokenController.php see this https://github.com/dusterio/lumen-passport/pull/182/files

thank you, it works now

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

Successfully merging this pull request may close these issues.

5 participants