Skip to content

Encrypted values not decrypting on read #432

@FinnThorwarth

Description

@FinnThorwarth

Hey,
my Model got encrypted fields like:

protected $casts = [
        'first_name' => 'encrypted',
        'last_name' => 'encrypted',
        'email' => 'encrypted',
        'phone' => 'encrypted',
        'address' => 'encrypted',
        'smartphone' => 'encrypted',
    ];

The old and the new value are stored correctly in the revisions. But its not decrypted on read.

Maybe there is a way to set a boolean value that the new and old value are encrypted and on read the values going to be decrypted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions