We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24a6c02 commit 80385a0Copy full SHA for 80385a0
src/Intouch/LaravelNewrelic/LumenNewrelicMiddleware.php
@@ -91,7 +91,7 @@ protected function getRouteObject() {
91
};
92
93
$routes = [];
94
- foreach (\App::getRoutes() as $routeName => $route) {
+ foreach (app()->getRoutes() as $routeName => $route) {
95
$regex = $routeToRegex($routeName);
96
$method = $routeToMethod($routeName);
97
$routes[$method.$regex] = compact('route', 'method', 'regex');
0 commit comments