dusterio / lumen-passport

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

Fix calling routes methods #80

Closed abdullah-abunada closed 5 years ago

abdullah-abunada commented 6 years ago

Fix: fix calling routes methods

JuanDMeGon commented 6 years ago

I think a better solution is to pass the router instead of the app when registering the routes:

It means this: public function boot() { LumenPassport::routes($this->app->router); } Instead of this:

public function boot() { LumenPassport::routes($this->app); }

Check this: https://github.com/dusterio/lumen-passport/issues/69#issuecomment-420425427

Maybe a PR just modifying the docs o change this from Lumen 5.5 or higher is enough.