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?
The
getRoutesmethod was removed as part of a code cleanup in Lumen 5.2.This pull request brought it back so the method is available again and no alternative approach is required now.