Answers for "check for right password laravel"

PHP
3

password match laravel

1. $user = User::where('email', request('email'))->first();
2. Hash::check(request('password'), $user->password);

This will return true or false based on whether or not the password matches.
Posted by: Guest on August-02-2020
2

how validate the password to strong password in laravel

use Illuminate\Validation\Rules\Password;


$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 for right password laravel"

Browse Popular Code Answers by Language