From 430e0e08f8bc154890bfda637fe574c3e25d27db Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 16 Jan 2017 10:22:51 -0600 Subject: [PATCH] show import --- encryption.md | 2 ++ 1 file changed, 2 insertions(+) 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);