1# Searched for Laravel 5.8
2# Check https://laravel.com/docs/5.8/encryption for different Laravel versions.
3use Illuminate\Support\Facades\Crypt;
4
5$encrypted = Crypt::encryptString('Hello world.');
6
7$decrypted = Crypt::decryptString($encrypted);
1use Illuminate\Support\Facades\Crypt;
2
3$encrypted = Crypt::encryptString('Hello world.');
4
5$decrypted = Crypt::decryptString($encrypted);