Skip to content

Conversation

dkulyk
Copy link
Contributor

@dkulyk dkulyk commented Jan 27, 2021

This PR allow to use fillJsonAttribute with encrypted fields. (same as #36056 for 9.x)

public $casts = [
        'secret_json' => 'encrypted:json',
        'secret' => 'encrypted',
];

$model->setAttribute('secret_json->key', 'value');
$model->fill([
  'secret->id' => 'id',
  'secret->key' => 'key'
]);

@taylorotwell
Copy link
Member

Breaking changes?

@taylorotwell taylorotwell merged commit 09204d5 into laravel:8.x Jan 27, 2021
@dkulyk dkulyk deleted the encrypted_fillJsonAttribute branch January 27, 2021 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants