📜  larvel 检查两个密码 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:24.434000             🧑  作者: Mango

代码示例1
$hashedPassword = User::find(1)->password;

if (Hash::check('plain-text-password', $hashedPassword)) {
    // The passwords match...
}