Skip to content

Commit 89d1598

Browse files
committed
Merge pull request laravel#242 from callam/patch-1
[5.1] Append middleware of action to group middleware
2 parents 3ecd5ce + 3836124 commit 89d1598

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ protected function mergeMiddlewareGroup($action)
10711071
{
10721072
if (isset($this->groupAttributes['middleware'])) {
10731073
if (isset($action['middleware'])) {
1074-
$action['middleware'] .= '|'.$this->groupAttributes['middleware'];
1074+
$action['middleware'] = $this->groupAttributes['middleware'].'|'.$action['middleware'];
10751075
} else {
10761076
$action['middleware'] = $this->groupAttributes['middleware'];
10771077
}

0 commit comments

Comments
 (0)