Security with encryption:
Encrypt/Decrypt
$encrypted = Crypt::encrypt($value);
$decrypted = Crypt::decrypt($encrypted);Model Encryption
protected $casts = [
'secret' => 'encrypted',
];Hashing
$hashed = Hash::make('password');
Hash::check('password', $hashed);Password Validation
'password' => [
'required',
Password::min(8)
->letters()
->mixedCase()
->numbers()
->symbols(),
]