class
Illuminate
/
Database
/
Eloquent
/
Casts
/
Json
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
Json
Properties
protected
static
$encoder callable|null
The custom JSON encoder.
Default: null
protected
static
$decoder callable|null
The custom JSON decode.
Default: null
Methods
public
static
encode ( mixed $value ) : void
Encode the given value.
public
static
decode ( mixed $value , bool $associative ) : void
Decode the given value.
public
static
encodeUsing ( callable $encoder ) : void
Encode all values using the given callable.
public
static
decodeUsing ( callable $decoder ) : void
Decode all values using the given callable.