class
Illuminate
/
Database
/
Eloquent
/
Casts
/
Json
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.