Illuminate\Database\Eloquent\Model::isJsonCastable PHP Method

isJsonCastable() protected method

Determine whether a value is JSON castable for inbound manipulation.
protected isJsonCastable ( string $key ) : boolean
$key string
return boolean
    protected function isJsonCastable($key)
    {
        return $this->hasCast($key, ['array', 'json', 'object', 'collection']);
    }
Model