show import

This commit is contained in:
Taylor Otwell 2017-01-16 10:22:51 -06:00
parent 4b14217134
commit 430e0e08f8
1 changed files with 2 additions and 0 deletions

View File

@ -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);