diff --git a/encryption.md b/encryption.md index f6fd4bc8bf8..397777af1fa 100644 --- a/encryption.md +++ b/encryption.md @@ -52,6 +52,8 @@ You may encrypt a value using the `encrypt` helper. All encrypted values are enc Encrypted values are passed through `serialize` during encryption, which allows for encryption of objects and arrays. Thus, non-PHP clients receiving encrypted values will need to `unserialize` the data. If you would like to encrypt and decrypt values without serialization, you may use the `encryptString` and `decryptString` methods of the `Crypt` facade: + use Illuminate\Support\Facades\Crypt; + $encrypted = Crypt::encryptString('Hello world.'); $decrypted = Crypt::decryptString($encrypted);