Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.x] Allow to fillJsonAttribute with encrypted fields #36063

Merged
merged 4 commits into from
Jan 27, 2021

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.

None yet

2 participants