how validate hash string in laravel

Solutions on MaxInterview for how validate hash string in laravel by the best coders in the world

showing results for - "how validate hash string in laravel"
Matthew
05 Jan 2018
1if (Hash::check('plain-text', $hashedPassword)) {
2    // The passwords match...
3}
Jayne
02 May 2019
1 $hash = '$2y$10$ug8B6Pxs546eQBNICxsEOOH3NgpXjOIo.g4rf1FPZk2xJncWcFUpu';
2
3 if( strlen($hash) == 60 && preg_match('/^\$2y\$/', $hash ))
4