class DiscountBreakdown implements CastsAttributes (View source)

Methods

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

Cast the given value.

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

Prepare the given value for storage.

Details

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

Cast the given value.

Parameters

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

Return Value

Collection

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

Prepare the given value for storage.

Parameters

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

Return Value

array