Add all files
This commit is contained in:
16
app/Attributes/DisabledIf.php
Normal file
16
app/Attributes/DisabledIf.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
// Attribute for disabling a component based on a condition
|
||||
|
||||
namespace App\Attributes;
|
||||
|
||||
use Attribute;
|
||||
|
||||
#[Attribute(Attribute::TARGET_CLASS)]
|
||||
class DisabledIf
|
||||
{
|
||||
public function __construct(
|
||||
public string $setting,
|
||||
public bool $default = false,
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user