Skip to content

Commit b9c09d7

Browse files
author
Yoke DV9
committed
Fix config folder
1 parent a77b810 commit b9c09d7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/Traits/EncryptedAttribute.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,25 @@ public function newEloquentBuilder($query)
7878
return new EncryptionEloquentBuilder($query);
7979
}
8080

81+
/**
82+
* Decrypt Attribute
83+
*
84+
* @param string $value
85+
*
86+
* @return string
87+
*/
8188
public function decryptAttribute($value)
8289
{
8390
return (!is_null($value) && $value != '') ? Encrypter::decrypt($value) : $value;
8491
}
8592

93+
/**
94+
* Encrypt Attribute
95+
*
96+
* @param string $value
97+
*
98+
* @return string
99+
*/
86100
public function encryptAttribute($value)
87101
{
88102
return (!is_null($value) && $value != '') ? Encrypter::encrypt($value) : $value;

0 commit comments

Comments
 (0)