json icon indicating copy to clipboard operation
json copied to clipboard

Doesn't work on encrypted fields

Open puzzledmonkey opened this issue 3 years ago • 0 comments

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']);
}

puzzledmonkey avatar Feb 26 '22 15:02 puzzledmonkey