October\Rain\Database\Traits\Encryptable
Overview
Encryptable database trait
Protected Properties
protected array $originalEncryptableValues
originalEncryptableValues is the original attribute values before they were encrypted
Public Methods
public getEncryptableAttributes()
public getEncryptableAttributes(): array
getEncryptableAttributes returns a collection of fields that will be encrypted.
public getEncryptableValue()
public getEncryptableValue(string $key): string
getEncryptableValue decrypts an attribute value
public getOriginalEncryptableValue()
public getOriginalEncryptableValue($attribute): mixed
getOriginalEncryptableValue returns the original values of any encrypted attributes.
public getOriginalEncryptableValues()
public getOriginalEncryptableValues(): array
getOriginalEncryptableValues returns the original values of any encrypted attributes
public initializeEncryptable()
public initializeEncryptable(): void
initializeEncryptable trait for a model
public makeEncryptableValue()
public makeEncryptableValue(string $key, string $value): string
makeEncryptableValue encrypts an attribute value and saves it in the original locker