interface
Illuminate
/
Contracts
/
Database
/
Eloquent
/
SerializesCastableAttributes
You are viewing an older version of the documentation. For the latest, please visit master documentation.
SerializesCastableAttributes
Methods
public
serialize ( $model , string $key , $value , array $attributes ) : mixed
Serialize the attribute when converting the model to an array.
Parameters
- $model Model
- $key string
- $value mixed
- $attributes array