From ab4bad7d2caf5535e6d3e65ce5937e4495853528 Mon Sep 17 00:00:00 2001 From: Mohamed Said Date: Sat, 2 Apr 2016 20:54:59 +0000 Subject: [PATCH] Reverse a breaking addition in router --- src/Illuminate/Routing/Route.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/Illuminate/Routing/Route.php b/src/Illuminate/Routing/Route.php index a379fb8a081a..32ab1403be84 100755 --- a/src/Illuminate/Routing/Route.php +++ b/src/Illuminate/Routing/Route.php @@ -235,15 +235,7 @@ protected function extractOptionalParameters() public function middleware($middleware = null) { if (is_null($middleware)) { - $middlewares = (array) Arr::get($this->action, 'middleware', []); - - if (is_string($this->action['uses'])) { - $middlewares = array_merge( - $middlewares, $this->controllerMiddleware() - ); - } - - return $middlewares; + return (array) Arr::get($this->action, 'middleware', []); } if (is_string($middleware)) {