Label
API reference › Form Model › Attribute › Label
Defines a display label for a form-model property.
Usage example:
#[Label('Email address')]public string $email = '';Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$value readonly constructor | string | Display label for the field. | Label |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates field label metadata. | Label |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(string $value)Creates field label metadata.
Parameters
| Parameter | Type | Description |
|---|---|---|
$value | string | Display label for the field. |