json
json copied to clipboard
Doesn't work on encrypted fields
Hi, excellent field thanks.
However, with a small update, it works with encrypted fields too:
protected function isJsonCastable($model)
{
return $model->hasCast($this->name, ['array', 'json', 'object', 'collection', 'encrypted:array', 'encrypted:json', 'encrypted:object', 'encrypted:collection']);
}