interface DeviatesCastableAttributes (View source)

Methods

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

Increment the attribute.

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

Decrement the attribute.

Details

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

Increment the attribute.

Parameters

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

Return Value

mixed

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

Decrement the attribute.

Parameters

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

Return Value

mixed