CastsAttributes
interface CastsAttributes (View source)
Methods
| mixed |  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
mixed 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.
    © Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
    https://laravel.com/api/7.x/Illuminate/Contracts/Database/Eloquent/CastsAttributes.html