Skip to content

Instantly share code, notes, and snippets.

@matticustard
Created August 13, 2019 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matticustard/3c051a5e6da5fcbfac8cce5c59408e1c to your computer and use it in GitHub Desktop.
Save matticustard/3c051a5e6da5fcbfac8cce5c59408e1c to your computer and use it in GitHub Desktop.
Simple Laravel hash check
$password = '123123';
$hash_1 = Hash::make($password);
$hash_2 = bcrypt($password);
dd([
Hash::check($password,$hash_1), // true
Hash::check($password,$hash_2), // true
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment