Answers for "check laravel password"

1

laravel password verification

// verification of password
if (Hash::check('secret', $hashedPassword))
{
    // The passwords match...
}

// encyption of password
$password = Hash::make('secret');
Posted by: Guest on April-24-2021
2

how validate the password to strong password in laravel

use IlluminateValidationRulesPassword;


$request->validate([
    'password' => [
        'required',
        'confirmed',
        Password::min(8)
            ->mixedCase()
            ->letters()
            ->numbers()
            ->symbols()
            ->uncompromised(),
    ],
]);
Posted by: Guest on July-06-2021

Code answers related to "check laravel password"

Browse Popular Code Answers by Language