encryption in laravel code example
Example 1: laravel encrypt decrypt
# Searched for Laravel 5.8
# Check https://laravel.com/docs/5.8/encryption for different Laravel versions.
use Illuminate\Support\Facades\Crypt;
$encrypted = Crypt::encryptString('Hello world.');
$decrypted = Crypt::decryptString($encrypted);
Example 2: laravel password encryption
$password = Hash::make('secret');