laravel password verification 1

laravel password verification

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

// encyption of password
$password = Hash::make('secret');

Here is what the above code is Doing:
1. The Hash facade is used to hash the password.
2. The Hash::check method is used to verify that an un-hashed password matches the hashed password.
3. The Hash::make method is used to hash the password.

Similar Posts