Skip to content

Commit e5bbe38

Browse files
committed
support middleware
1 parent 30ebcc5 commit e5bbe38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Facades/Route.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
* @method void static head(string $route, $handler, ...$handlers)
1515
* @method void static any(string $route, $handler, ...$handlers)
1616
* @method void static addGroup(string $prefix, array $handlers, callable $callback)
17-
* @method void static group(string $prefix, array $handlers, callable $callback)
17+
* @method void static group(string | array | callable $prefix, ...$handlers)
18+
* @method void static middleware(...$middlewares)
1819
* @method void static map(array $methods, string $route, $handler, ...$handlers)
1920
*/
2021

0 commit comments

Comments
 (0)