From 5281a48a85babde20ba0065b5a4cae638cd0ca7c Mon Sep 17 00:00:00 2001 From: Aranya Sen Date: Mon, 18 May 2020 22:03:37 +0530 Subject: [PATCH] Add support for multiple middleware --- src/routes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes.php b/src/routes.php index 58ad631..f63bfc4 100644 --- a/src/routes.php +++ b/src/routes.php @@ -13,5 +13,5 @@ $middleware = config('prometheus.metrics_route_middleware'); if ($middleware) { - $route->middleware($middleware); + $route->middleware(explode(',', $middleware)); }