AsHtmlString
class AsHtmlString implements Castable
Methods
static CastsAttributes|CastsInboundAttributes|string
castUsing(array $arguments)
Get the caster class to use when casting from / to this cast target.
HtmlString|null
string|null
Details
at line 20
static CastsAttributes|CastsInboundAttributes|string
castUsing(array $arguments)
Get the caster class to use when casting from / to this cast target.
at line 26
HtmlString|null
get(Model $model, string $key, mixed $value, array $attributes)
Cast the stored value to an HTML string.
at line 34
string|null
set(Model $model, string $key, mixed $value, array $attributes)
Prepare the HTML string for storage.
at line 42
string|null
serialize(Model $model, string $key, mixed $value, array $attributes)
Serialize the HTML string for an array or JSON response.