Hashing
Basic Usage
$user = App\Models\User::find(1);
$user->password = Hash::make('my_password');
$user->password = hash_make('using helper');Verifying A Password Against A Hash
if(Hash::check('plain-text', $hashedPassword)) {
// The passwords match...
}
if(hash_check('plain-text', $hashedPassword)) {
// The passwords match...
}Mis à jour
Ce contenu vous a-t-il été utile ?