Created
August 13, 2019 15:57
-
-
Save matticustard/3c051a5e6da5fcbfac8cce5c59408e1c to your computer and use it in GitHub Desktop.
Simple Laravel hash check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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