Laravel
Release notes
Upgrade Guide
Contribution Guide
interface
Illuminate
/
Contracts
/
Database
/
Eloquent
/
SerializesCastableAttributes
SerializesCastableAttributes
#
Methods
public
#
serialize
(
Model
$model
,
string
$key
,
mixed
$value
,
array
$attributes
)
:
mixed
Serialize the attribute when converting the model to an array.
Parameters
$model
Model
$key
string
$value
mixed
$attributes
array
On this page
On this page
Methods
serialize