W3cubDocs

/Laravel 8

CastsInboundAttributes

interface CastsInboundAttributes (View source)

Methods

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

Transform the attribute to its underlying model values.

Details

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

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