laravel / 10 / api / 10.x / illuminate / contracts / database / eloquent / deviatescastableattributes.html

DeviatesCastableAttributes

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

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Contracts/Database/Eloquent/DeviatesCastableAttributes.html