dusterio / lumen-passport

Making Laravel Passport work with Lumen
MIT License
654 stars 139 forks source link

Support laravel passport 11.x #182

Open wadaahmad opened 1 year ago

wadaahmad commented 1 year ago

Change access_token validation to PersonalAccessTokenFactory

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

dshyam61 commented 10 months ago

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

jeanlinux commented 7 months ago

@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 commented 7 months ago

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

ekopras18 commented 5 months ago

Thanks u @wadaahmad , Work !!!

UKF-JozefVirag commented 5 months ago

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

ekopras18 commented 5 months ago

@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 commented 5 months ago

@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