FieldType
The base JSON-Schema type of a form field. `enum` is a CONSTRAINT (see FieldConstraints), not a type — coercion always follows the base type here.
FieldType::cases()
public static function cases(): arrayFieldType::from()
public static function from(string|int $value): staticParameters
| Name | Type | Description |
|---|---|---|
| $value | string|int |
FieldType::tryFrom()
public static function tryFrom(string|int $value): ?staticParameters
| Name | Type | Description |
|---|---|---|
| $value | string|int |