interface CastsAttributes (View source)

Methods

TGet|null
get(Model $model, string $key, mixed $value, array $attributes)

Transform the attribute from the underlying model values.

mixed
set(Model $model, string $key, mixed $value, array $attributes)

Transform the attribute to its underlying model values.

Details

TGet|null get(Model $model, string $key, mixed $value, array $attributes)

Transform the attribute from the underlying model values.

Parameters

Model $model
string $key
mixed $value
array $attributes

Return Value

TGet|null

mixed set(Model $model, string $key, mixed $value, array $attributes)

Transform the attribute to its underlying model values.

Parameters

Model $model
string $key
mixed $value
array $attributes

Return Value

mixed

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.