Свойство | Тип | Описание | |
---|---|---|---|
$encrypter | Illuminate\Encryption\Encrypter | The Encrypter to use for encryption. | |
$encrypting | boolean | Whether the model is encrypting or not. |
Метод | Описание | |
---|---|---|
__get ( string $key ) : mixed | Dynamically retrieve attributes. | |
__set ( string $key, mixed $value ) | Dynamically set attributes. | |
addEncryptable ( string $attribute ) | Add an attribute to the encryptable array. | |
decrypt ( string $value ) : string | Return a decrypted string for the value. | |
encrypt ( string $value ) : string | Return an encrypted string for the value. | |
encryptAttributes ( ) | Encrypt attributes that should be encrypted. | |
getEncryptable ( ) : array | Get the encryptable attributes. | |
getEncryptedAttribute ( string $attribute ) : string | Get the decrypted value for an encrypted attribute. | |
getEncrypter ( ) : Illuminate\Encryption\Encrypter | Set the Encrypter to use for encryption. | |
getEncrypting ( ) : boolean | Returns whether or not the model will encrypt attributes when setting and decrypt when getting. | |
isDecrypted ( string $attribute ) : boolean | Returns whether the attribute is decrypted. | |
isEncryptable ( string $attribute ) : boolean | Returns whether the attribute is encryptable. | |
isEncrypted ( string $attribute ) : boolean | Returns whether the attribute is encrypted. | |
mergeEncryptable ( array $attributes ) | Merge an array of attributes with the encryptable array. | |
removeEncryptable ( string $attribute ) | Remove an attribute from the encryptable array. | |
setEncryptable ( array $attributes ) | Set the encryptable attributes. | |
setEncrypter ( Illuminate\Encryption\Encrypter $encrypter ) | Set the Encrypter to use for encryption. | |
setEncrypting ( $value ) | Set whether or not the model will encrypt attributes when setting and decrypt when getting. | |
setEncryptingAttribute ( string $attribute, string $value ) | Set an encrypted value for an encryptable attribute. |
Метод | Описание | |
---|---|---|
getDynamicEncrypted ( string $attribute ) : mixed | Get an encrypted attribute dynamically. | |
setDynamicEncryptable ( string $attribute, mixed $value ) : boolean | Set an encryptable attribute dynamically. |
public addEncryptable ( string $attribute ) | ||
$attribute | string | to purge |
public encryptAttributes ( ) |
protected getDynamicEncrypted ( string $attribute ) : mixed | ||
$attribute | string | |
Результат | mixed |
public getEncryptable ( ) : array | ||
Результат | array |
public getEncryptedAttribute ( string $attribute ) : string | ||
$attribute | string | name |
Результат | string |
public getEncrypter ( ) : Illuminate\Encryption\Encrypter | ||
Результат | Illuminate\Encryption\Encrypter |
public getEncrypting ( ) : boolean | ||
Результат | boolean |
public isDecrypted ( string $attribute ) : boolean | ||
$attribute | string | name |
Результат | boolean |
public isEncryptable ( string $attribute ) : boolean | ||
$attribute | string | name |
Результат | boolean |
public isEncrypted ( string $attribute ) : boolean | ||
$attribute | string | name |
Результат | boolean |
public mergeEncryptable ( array $attributes ) | ||
$attributes | array | to purge |
public removeEncryptable ( string $attribute ) | ||
$attribute | string | to purge |
public setEncryptable ( array $attributes ) | ||
$attributes | array | to encrypt |
public setEncrypter ( Illuminate\Encryption\Encrypter $encrypter ) | ||
$encrypter | Illuminate\Encryption\Encrypter |
public setEncrypting ( $value ) |
public setEncryptingAttribute ( string $attribute, string $value ) | ||
$attribute | string | name |
$value | string | to encrypt |
protected Encrypter,Illuminate\Encryption $encrypter | ||
Результат | Illuminate\Encryption\Encrypter |
protected bool $encrypting | ||
Результат | boolean |