The primitive type vocabulary of slots (#[Slot]) and route parameters
(#[Parameter]). Settings have their own, {@see ValueType}; a slot's type maps
onto it through {@see toValueType()} (D14).
What a slot consumer receives. Slots are wire-shaped, and the parameter
pipeline hands out every value in the one form named per case below, whichever
source filled it ({@see \LaravelUi5\Core\Parameters\SlotValueCaster}). Route
parameters are cast by their own resolver; these forms do not describe them.
| Cases |
String = 1
A string value (e.g. 'EUR', 'dark', 'ProjectVH'). As a slot value: `string`.
A string value (e.g. 'EUR', 'dark', 'ProjectVH'). As a slot value: string.
|
#
|
Integer = 2
An integer value (e.g. 42, 0, 365). As a slot value: `int`.
An integer value (e.g. 42, 0, 365). As a slot value: int.
|
#
|
Float = 3
A floating-point number (e.g. 19.99, 0.875). As a slot value: `float`.
A floating-point number (e.g. 19.99, 0.875). As a slot value: float.
|
#
|
Boolean = 4
A boolean value. As a slot value: `bool`.
A boolean value. As a slot value: bool.
|
#
|
Date = 5
An ISO-8601 calendar date. As a slot value: a `string` in the form `Y-m-d`
(e.g. '2026-09-14').
An ISO-8601 calendar date. As a slot value: a string in the form Y-m-d
(e.g. '2026-09-14').
|
#
|
Model = 6
An integer representing the foreign key of a Model class. Route parameters
only — a slot may not declare it.
An integer representing the foreign key of a Model class. Route parameters
only — a slot may not declare it.
|
#
|
DateTime = 7
An ISO-8601 timestamp (date and time). As a slot value: a `string` with
offset (e.g. '2026-09-14T08:30:00+02:00').
An ISO-8601 timestamp (date and time). As a slot value: a string with
offset (e.g. '2026-09-14T08:30:00+02:00').
|
#
|
Decimal = 8
A fixed-precision number, distinct from Float's binary semantics. As a slot
value: a numeric `string` (e.g. '19.99') —…
A fixed-precision number, distinct from Float's binary semantics. As a slot
value: a numeric string (e.g. '19.99') — never a float, which is what the
type exists to avoid.
|
#
|