There was an error while loading. Please reload this page.
1 parent a77b810 commit b9c09d7Copy full SHA for b9c09d7
src/Traits/EncryptedAttribute.php
@@ -78,11 +78,25 @@ public function newEloquentBuilder($query)
78
return new EncryptionEloquentBuilder($query);
79
}
80
81
+ /**
82
+ * Decrypt Attribute
83
+ *
84
+ * @param string $value
85
86
+ * @return string
87
+ */
88
public function decryptAttribute($value)
89
{
90
return (!is_null($value) && $value != '') ? Encrypter::decrypt($value) : $value;
91
92
93
94
+ * Encrypt Attribute
95
96
97
98
99
100
public function encryptAttribute($value)
101
102
return (!is_null($value) && $value != '') ? Encrypter::encrypt($value) : $value;
0 commit comments