📜  laravel 哈希密码示例 - PHP 代码示例

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

代码示例4
$data = User::find($id);
if( ! Hash::check( Input::get('currPassword') , $data->password ) )
{
    return Redirect::to('/admin/profile')
        ->with('message', 'Current Password Error !')
        ->withInput();
}