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

Support laravel passport 11.x

Open wadaahmad opened this issue 1 year ago • 7 comments

Change access_token validation to PersonalAccessTokenFactory

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

wadaahmad avatar Aug 23 '23 14:08 wadaahmad

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

dshyam61 avatar Oct 27 '23 12:10 dshyam61

@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

jeanlinux avatar Jan 29 '24 19:01 jeanlinux

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

wadaahmad avatar Jan 30 '24 04:01 wadaahmad

Thanks u @wadaahmad , Work !!!

ekopras18 avatar Mar 12 '24 09:03 ekopras18

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

UKF-JozefVirag avatar Mar 13 '24 12:03 UKF-JozefVirag

@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

ekopras18 avatar Mar 14 '24 04:03 ekopras18

@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

UKF-JozefVirag avatar Mar 14 '24 08:03 UKF-JozefVirag