Skip to content

Commit 2dcf83b

Browse files
authored
Merge pull request #150 from Tofandel/patch-3
Make Route and Any repeatable attributes
2 parents 2ca4463 + 1d9a7de commit 2dcf83b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Attributes/Any.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Attribute;
66
use Illuminate\Routing\Router;
77

8-
#[Attribute(Attribute::TARGET_METHOD)]
8+
#[Attribute(Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
99
class Any extends Route
1010
{
1111
public function __construct(

src/Attributes/Route.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Illuminate\Routing\Router;
77
use Illuminate\Support\Arr;
88

9-
#[Attribute(Attribute::TARGET_METHOD)]
9+
#[Attribute(Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
1010
class Route implements RouteAttribute
1111
{
1212
public array $methods;

0 commit comments

Comments
 (0)