标签: authentication passwords laravel-5.7
**嗨,我需要检查密码是真的还是假的**
$id = Auth::id(); $user=user::find($id); if (Hash::check($request->password,$user->getAuthPassword())) { return 'true' ; } else{ return 'false'; }
总是有这样的错误:
“ message”:“在空调用成员函数getAuthPassword()”,