classes/Blueprints/Attributes/MaxLength.php
<?php
namespace Bnomei\Blueprints\Attributes;
use Attribute;
#[Attribute(Attribute::TARGET_PROPERTY)]
class MaxLength extends GenericAttribute
{
/**
* Maximum number of allowed characters
*/
public function __construct(
public int $maxlength
) {}
}