Closed abdullah-abunada closed 5 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.
Fix: fix calling routes methods