Answers for "laravel check hash value"

PHP
2

how validate hash string in laravel

if (Hash::check('plain-text', $hashedPassword)) {
    // The passwords match...
}
Posted by: Guest on June-13-2021
2

how validate hash string in laravel

$hash = '$2y$10$ug8B6Pxs546eQBNICxsEOOH3NgpXjOIo.g4rf1FPZk2xJncWcFUpu';

 if( strlen($hash) == 60 && preg_match('/^\$2y\$/', $hash ))
Posted by: Guest on August-02-2021

Browse Popular Code Answers by Language