Skip to content

Commit 5c2e7a9

Browse files
authored
Merge pull request #4 from agus24/master
bump laravel 11
2 parents 7deb609 + 92bebbd commit 5c2e7a9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"php": "^8.1"
88
},
99
"require-dev": {
10-
"illuminate/routing": "^10.x-dev",
11-
"illuminate/events": "^10.x-dev",
10+
"illuminate/routing": "^10.x-dev | ^11",
11+
"illuminate/events": "^10.x-dev | ^11",
1212
"phpunit/phpunit": "^10.0",
1313
"mockery/mockery": "^1.5"
1414
},

src/AttributeMiddleware.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ trait AttributeMiddleware
1818
*/
1919
public function getMiddleware(): array
2020
{
21-
return array_merge($this->middleware, $this->getMiddlewaresByAttributes());
21+
$middlewares = (new ReflectionClass($this))->getAttributes("middleware");
22+
return array_merge($middlewares, $this->getMiddlewaresByAttributes());
2223
}
2324

2425
/**

0 commit comments

Comments
 (0)