Lumen 5.2 has not been officially released yet, but as you can see in the GitHub repository the methods app()->getRoutes()
and app()->getNamespace()
will be no longer available.
Are there any other ways to get the routes and the namespace in Lumen 5.2?
As of version 9 this has moved to the router component. So it would be accessed via
app()->router->getRoutes()
.