We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d5dfad commit 0b52acbCopy full SHA for 0b52acb
src/Illuminate/Container/Attributes/Database.php
@@ -5,14 +5,15 @@
5
use Attribute;
6
use Illuminate\Contracts\Container\Container;
7
use Illuminate\Contracts\Container\ContextualAttribute;
8
+use UnitEnum;
9
10
#[Attribute(Attribute::TARGET_PARAMETER)]
11
class Database implements ContextualAttribute
12
{
13
/**
14
* Create a new class instance.
15
*/
- public function __construct(public ?string $connection = null)
16
+ public function __construct(public UnitEnum|string|null $connection = null)
17
18
}
19
0 commit comments