Skip to content

Commit 7563912

Browse files
committed
revert commit
1 parent 8f6fa2c commit 7563912

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Illuminate/Routing/Router.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -954,9 +954,7 @@ public function getMiddlewareGroups()
954954
*/
955955
public function middlewareGroup($name, array $middleware)
956956
{
957-
foreach ($middleware as $m) {
958-
$this->pushMiddlewareToGroup($name, $m);
959-
}
957+
$this->middlewareGroups[$name] = $middleware;
960958

961959
return $this;
962960
}

0 commit comments

Comments
 (0)