This commit is contained in:
2020-10-15 10:53:47 +08:00
parent 0c29994b18
commit dffcc52dbd
+1 -1
View File
@@ -303,7 +303,7 @@ class Router extends Application implements RouterInterface
}
$name = array_column($this->groupTacks, 'middleware');
if (!empty($this->middleware) && $this->middleware instanceof \Closure) {
if ($this->middleware instanceof \Closure) {
array_unshift($name, $this->middleware);
}
$node->bindMiddleware($name);